Jump to content
Macro Express Forums

Use of operators


Recommended Posts

Hello,

is there an opportunity to subtract 1 to the following statement - i want to subtract to the variable StelleSemikolon 1 - or do i have to declare a new variable before?

<VARIABLE MODIFY STRING Option="\x09" Destination="%Programm%" Variable="%Zwischenablage%" Start="1" Count="%StelleSemikolon%" NoEmbeddedVars="FALSE"/>
 

Any idea?

 

Thank you

Martin

Link to comment
Share on other sites

Hi Martin,

I hope the following is self-explanatory.

Variable Set String %Zwischenablage%: Prompt
Variable Set Integer %StelleSemikolon%: Prompt
Variable Modify String: Copy a substring in %Zwischenablage%, starting at 1 and %StelleSemikolon% characters long to %Programm%
Text Box Display: First result
 
// If the above is a correct example of what you are doing, I will now see if I understand your question about subtracting.
// To repeat the above command in line 3 but using a new value of StelleSemikolon, you do not need to define a new varaible. Instead you can edit the value using the same name.
// I have done this in the following command, in this case reducing the previous number by one.

Variable Modify Integer %StelleSemikolon%: Decrement
 Variable Modify String: Copy a substring in %Zwischenablage%, starting at 1 and %StelleSemikolon% characters long to %Programm%
Text Box Display: Second result

Terry, East Grinstead, UK

Link to comment
Share on other sites

Variable Modify String: Convert %T1% to integer %N1%             convert text variable to integer variable
Variable Modify Integer: Dec (%N1%)                                             decrement integer variable
Variable Modify Integer: Convert %N1% to text string %T1%      convert integer variable back to text variable

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...
 Share

×
×
  • Create New...