Marcin1147 Posted April 3, 2009 Share Posted April 3, 2009 Sorry for my very bad English! I have question. How Do it without GoTo? label: $var=ControlGetText("App","","Edit2") if StringInStr($var,".") Then GoTo label else MsgBox(64,"App",$var) endif Link to comment Share on other sites More sharing options...
picea892 Posted April 3, 2009 Share Posted April 3, 2009 I think you would have to use a function. or a continue loop scenario Link to comment Share on other sites More sharing options...
Marcin1147 Posted April 3, 2009 Author Share Posted April 3, 2009 Example please Link to comment Share on other sites More sharing options...
Exit Posted April 3, 2009 Share Posted April 3, 2009 (edited) While 1 $var = ControlGetText("App", "", "Edit2") If Not StringInStr($var, ".") Then ExitLoop WEnd MsgBox(64, "App", $var) Edited April 3, 2009 by forumer100 App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Marcin1147 Posted April 3, 2009 Author Share Posted April 3, 2009 Thx Link to comment Share on other sites More sharing options...
Paulie Posted April 3, 2009 Share Posted April 3, 2009 A little closer to the original: Do $var=ControlGetText("App","","Edit2") Until NOT StringInStr($var,".") MsgBox(64,"App",$var) Link to comment Share on other sites More sharing options...
Marcin1147 Posted April 3, 2009 Author Share Posted April 3, 2009 Thx too but I used forumer100 solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now