Hi ,
I am trying to force the user to give a valid entry: I display a modal window, and ask to give a value.
If this value is a string different than "" , then the code should go on using the value given. If not , the script should hang on or prompt the user to give correct input.
I tried using a modal window + hiding the OK button, but somehow, it does not do the job (see attached code).
Please help.
win = New Window( "Set a Value",
<<Modal,
<<Return Result,
tb = Text Box( "Set this value" ),
variablebox = Text Edit Box( "",
//bb << enable(variablebox << get text !="");
If( variablebox << get text != "",
bb << Visibility( "Visible" )
),
),
bb = Button Box( "OK" ),
bb << Visibility( "Hidden" ),
If( variablebox << get text != "",
bb << Visibility( "Visible" ),
bb << Visibility( "Hidden" )
),
//Button Box( "Cancel" ),
);