Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
array question
#1
I think this is an array question
i need the macro to start with a number, lets say 1, and everytime it runs the macro, add one to that number and enter it into a form.
where do I start? How do I do this?

thanks
#2
In that macro, declare global int variable and add 1.

int+ g_abcba
g_abcba+1
outp g_abcba
#3
thanks!
this is the line that has the input
'TTTTTTTTTTTTTTTTTTTTTTT2TV AT

where the "2" represents the number i am typing manually now, do I just put
outp g_abcba there? and is there any brackets to put around it or anything?
sorry but I really no nothing about coding, i just need this to work for 1 project. Also, where do i declare that the global int starts at "1"
#4
Code:
Copy      Help
int+ g_abcba
g_abcba+1
str s=g_abcba ;;convert to string, so that can be used with the key command
'TTTTTTTTTTTTTTTTTTTTTTT (s) TV AT

Declaration is int+ g_abcba. If you want to be able to reset the variable, for example, create other macro and there assign 0:

int+ g_abcba=0

In the example, this variable is declared again, to avoid error if "reset" macro runs first.


Forum Jump:


Users browsing this thread: 1 Guest(s)