vickerps Posted March 19, 2004 Posted March 19, 2004 Hi can any see where i have gone wrong or is not even possible Until $Thirdchar = ":" AND $lenght =5 OR $lenght =8 AND $sixthchar=":" I want is the lenght of the inputbox is 5 the third charactor must : and If the lenght is 8 the third and sixth charactor must be :
CyberSlug Posted March 19, 2004 Posted March 19, 2004 (edited) Use parentheses and make sure the variables are initialized right: Do $var = InputBox("title", "text") $length = StringLen($var) $ThirdChar = StringMid($var, 3, 1) $SixthChar = StringMid($var, 6, 1) Until ($ThirdChar = ":" AND $length =5) OR ($length =8 AND $SixthChar=":") Maybe something like that? Edited March 19, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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