- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there in Fortran dialog based application the possibility to read logical expression from the EditBox and evaluate it continuously in the cycle. Below is the example. In the EditBox could be given e.g. I.gt.25.
lret = DLGGET (dlg,IDC_EDIT_LOG,Beep_when)
Do I = 1,50
if (Beep_when) Call beepqq (100,100)
end do
lret = DLGGET (dlg,IDC_EDIT_LOG,Beep_when)
Do I = 1,50
if (Beep_when) Call beepqq (100,100)
end do
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like CVF's Debug/Breakpoints/Condition... edit box, right?
You can take a look at Stuart Midgley's Function Parser, but as far as I know it deals only withnumerical functions, not logical ones -- you could probably adapt it to your needs by extending the list of operators (but it's not a trivial task).
Depending on how flexible you need your interface to be, it might be less error-prone and more obvious to the user to present him a combination of e.g. three controls: one combo-box presenting list of variables, one dropdown list containing possible operators (>, <, == etc.)and one spin-edit box with the numerical value. Of course, if the expression can be more complex, it's not appropriate approach.
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page