Posts: 45
Threads: 7
Joined: Feb 2012
Trying to get more than 10 global strings to work. I wish to Copy about 15 things from one program and place in another. I can get them to work from Copy1 to Copy10 but after that it will not work. I have tried several ways but none work.
Can you give me a way to make the below work.
;create global variables
str+ g_sA g_sB g_sC g_sD g_sE g_sF g_sG g_sH g_sI g_sJ g_sK g_sL g_sM g_sN g_sO g_sP
;copy12
g_sO.getsel
Posts: 12,086
Threads: 142
Joined: Dec 2002
this works
Macro
Macro1731
str+ g_sA g_sB g_sC g_sD g_sE g_sF g_sG g_sH g_sI g_sJ g_sK g_sL g_sM g_sN g_sO g_sP
g_sA.getsel
g_sB.getsel
g_sC.getsel
g_sD.getsel
g_sE.getsel
g_sF.getsel
g_sG.getsel
g_sH.getsel
g_sI.getsel
g_sJ.getsel
g_sK.getsel
g_sL.getsel
g_sM.getsel
g_sN.getsel
g_sO.getsel
g_sP.getsel
Macro
Macro1732
out
out g_sA
out g_sB
out g_sC
out g_sD
out g_sE
out g_sF
out g_sG
out g_sH
out g_sI
out g_sJ
out g_sK
out g_sL
out g_sM
out g_sN
out g_sO
out g_sP
Posts: 45
Threads: 7
Joined: Feb 2012
The below does not work.
I need to be able to do each copy to variable separately.
One copy and/or selection at a time.
For instance the first one would be
;create global variables
str+ g_sA g_sB g_sC g_sD g_sE g_sF g_sG g_sH g_sI g_sJ g_sK g_sL g_sM g_sN g_sO g_sP
;copy1
g_sA.getsel
However when I get to
;create global variables
str+ g_sA g_sB g_sC g_sD g_sE g_sF g_sG g_sH g_sI g_sJ g_sK g_sL g_sM g_sN g_sO g_sP
;copy12
g_sO.getsel
This approach does not work.
The approach below does not work since I need to select before I use the .getsel
str+ g_sA g_sB g_sC g_sD g_sE g_sF g_sG g_sH g_sI g_sJ g_sK g_sL g_sM g_sN g_sO g_sP
g_sA.getsel
g_sB.getsel
g_sC.getsel
g_sD.getsel
g_sE.getsel
g_sF.getsel
g_sG.getsel
g_sH.getsel
g_sI.getsel
g_sJ.getsel
g_sK.getsel
g_sL.getsel
g_sM.getsel
g_sN.getsel
g_sO.getsel
g_sP.getsel
The main question is:
Why does the global variables stop after 10 variables when they are treated separately?
Thanks for your help
Posts: 12,086
Threads: 142
Joined: Dec 2002
Do you have more than 10 such macros? Can you please export all the macros and post here as attachment? To export all, put all the macros into a folder and export the folder.
Maybe some of your macros run in separate process? Each process has its own global variables, even if names are the same.
Posts: 45
Threads: 7
Joined: Feb 2012
System now working without any problems after upgrade. Problems no longer seem to exist.