H2o-KiD Posted December 19, 2006 Report Posted December 19, 2006 I wonder if Macro Express can limits prompt integer value. Quote
kevin Posted December 19, 2006 Report Posted December 19, 2006 In the prompt you can say something like 'Enter a value between 10 and 101'. Then, in a few macro commands, you can check to see if the value is outside the range you specify. If not, ask for the value again. Something like this: Repeat Until %T1% = "DONE" Variable Set Integer %N1% from Prompt If Variable %N1% >= 10 AND If Variable %N1% <= 101 Variable Set String %T1% "DONE" End If Repeat End Quote
H2o-KiD Posted December 21, 2006 Author Report Posted December 21, 2006 I just discovered that this way works too. But I am afraid if this way contains any bad effect about it? Or, it just work fine the same. Repeat Until %N1% < 11 Repeat Until %N1% > 0 Variable Set Integer %N1% from prompt Repeat End Repeat End Quote
kevin Posted December 21, 2006 Report Posted December 21, 2006 That is slick. I cannot see why it won't work Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.