Page 1 of 1

WhileEx?

PostPosted: Tue Dec 12, 2017 7:39 am
by Dudus
I have te following code, what is the problem?

WhileEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndWhile

Beacues no OK message even Reg1 and Reg2 are filled out.
Thnx
D

Re: WhileEx?

PostPosted: Tue Dec 12, 2017 8:54 am
by virger
WhileEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndWhile

"ELSE" IT'S NOT VALID COMMAND IN 'WHILEEX' LOOK HELP
USE "IFEX"
Code: Select all
IfEx "[Reg1]<[#32] or [Reg2]<[#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndIf

Re: WhileEx?

PostPosted: Tue Dec 12, 2017 2:00 pm
by Danito
Code: Select all
IfEx "[Reg1]<[#32][#32] or [Reg2]<[#32][#32]"
AlertBox "Error" "Please fill out both of the Input fields"
Else
AlertBox "OK!" "It's okay!"
EndIf

Re: WhileEx?

PostPosted: Tue Dec 12, 2017 11:18 pm
by Dudus
Thank you, works gerat. And thank you for the explanation :)