H2o-KiD Posted December 19, 2006 Report Share Posted December 19, 2006 I wonder if Macro Express can limits prompt integer value. Quote Link to comment Share on other sites More sharing options...
kevin Posted December 19, 2006 Report Share 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 Link to comment Share on other sites More sharing options...
H2o-KiD Posted December 21, 2006 Author Report Share 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 Link to comment Share on other sites More sharing options...
kevin Posted December 21, 2006 Report Share Posted December 21, 2006 That is slick. I cannot see why it won't work Quote Link to comment Share on other sites More sharing options...
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.