Update with alertbox

could you be more specific?
Or do you mean something like:

Code:
define variable lOk as logical no-undo.
 
message "make your choice"
    view-as alert-box question
    BUTTONS YES-NO-CANCEL
    title "Choose"
    update lOk.
 
MESSAGE lok
    VIEW-AS ALERT-BOX INFO BUTTONS OK.

Casper.
 
thanks Casper.
I want to get some value of variable with alert-box.

For example.
DEFINE VARIABLE i as CHARACTER.
UPDATE i.

this will get the value directly from the user but i want something like alert-box pops up and get the input from the user and the confirmation with yes or no buttons as in alert-box
 
With the default alert-box this isn't possible. Only logical variables can be updated. But you are of course free to make your own dialog window which can update the variable and sent it back to the calling procedure.

Casper.
 
I meant just to create your own dialog box.
So don't use message statement but run some window you created yourself.

Attached I got some quick and dirty example of what I mean.
(IF you change the datatype to integer then you can update integers and so on).
The cancel button doesn't fill the newval variable, the no button gives back to old value and the yes button the new value.

HTH,

Casper.
 

Attachments

And, of course, one should point out that alert boxes are modal and thus really should only be used in a modern UI when it is really necessary and appropriate to stop the user from doing anything else, i.e., an alert situation.
 
Back
Top