Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question about strings
#1
hello,

i have a (probably simple) question.

in a macro i store some text in a string later in the same macro i want to use it again, for comparison how can i manage this? a simple example:

if x[0 0]="test"
ARRAY(str) code = x[0 0]

comparison part
if code ="yippie"
,mes"yes"
#2
Why use array? What is x?
#3
It is some information out of an excel sheet, and x is just a name
#4
Your question is simple but I don't understand the example.
Which part is what you don't know how to do? Compare strings? Compare arrays? Compare array elements? Store strings in a file?
#5
The information stored in the string, is somehow gone later in the macro in the comparison part. It is separated in several parts so i can use the goto command to jump to it. Is it possible to store this and use it later in the comparison part? this is what i mean.

Sorry for the inconvenience...
#6
If something is stored in a variable, it cannot disappear while the macro is running.
If the macro runs several times, and a variable must be preserved, use global variable.

str+ globalVar

Maybe I can help if you post whole macro. Insert comments where the variable is populated and where compared.
#7
Thank you!

With your directions I figured it out, many thanks as always!


Forum Jump:


Users browsing this thread: 1 Guest(s)