Jump to content
Macro Express Forums

If Problem Again


koden

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...