koden Posted September 21, 2006 Report Share Posted September 21, 2006 1. is the IF commands I have made okay??? (see attached word). 2. In my if commands i use "if T2 contains SEL" T2 is always 6 or 7 digit. How do I in my IF contain make sure that SEL or SEM only is comaring with the first 3 digits in T2? is it to use SEL**** or something else??? IFsettings.doc Quote Link to comment Share on other sites More sharing options...
kevin Posted September 21, 2006 Report Share Posted September 21, 2006 koden I cannot read the attached .doc file. The system is having trouble. It you want to attach a document to a post, please zip it. Sometimes it is easier if you include macro samples using the forum's 'CODE' button. To copy the commands from a macro script, highlight what you want to copy, right-click, and choose 'Copy Command Text'. Then you can paste the script commands into a post. I used this technique to generate the code samples below. There are several ways to determine if a specific string is within the first 3 characters of another string. Here are two: If Variable %T1% contains "SEL" Variable Set Integer %N1% from Position of Text in Variable %T1% If Variable %N1% = 1 // The string contains 'SEL' in the first 3 characters End If End If or Variable Modify String: Copy Part of %T1% to %T2% If Variable %T2% = "SEL" // The string T1 contains 'SEL' in the first 3 characters End If 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.