10-06-2007, 05:14 PM
To do something with strings, it does not have to be like
str s.something(...)
It just joins two steps into single line. In two steps it would be
str s
s.something(...)
The first line declares (creates) variable s. The second line does something with the variable. You cannot declare the same local variable two times in a macro/function. Declare it once, and then do something with it any number of times.
str s
s.something(...)
s.something2(...)
s.something3(...)
...
Or you can first time do it in single line:
str s.something(...)
s.something2(...)
s.something3(...)
...
When you use floating toolbar dialogs to insert string functions etc, they don't know that the variable is already declared, and may insert str s.something(...) multiple times.
str s.something(...)
str s.something2(...)
str s.something3(...)
Just delete "str ", except in first such line.
str s.something(...)
s.something2(...)
s.something3(...)
Or use other variables.
str s.something(...)
str s2.something2(...)
str s3.something3(...)
Or
str s s2 s3
s.something(...)
s2.something2(...)
s3.something3(...)
str s.something(...)
It just joins two steps into single line. In two steps it would be
str s
s.something(...)
The first line declares (creates) variable s. The second line does something with the variable. You cannot declare the same local variable two times in a macro/function. Declare it once, and then do something with it any number of times.
str s
s.something(...)
s.something2(...)
s.something3(...)
...
Or you can first time do it in single line:
str s.something(...)
s.something2(...)
s.something3(...)
...
When you use floating toolbar dialogs to insert string functions etc, they don't know that the variable is already declared, and may insert str s.something(...) multiple times.
str s.something(...)
str s.something2(...)
str s.something3(...)
Just delete "str ", except in first such line.
str s.something(...)
s.something2(...)
s.something3(...)
Or use other variables.
str s.something(...)
str s2.something2(...)
str s3.something3(...)
Or
str s s2 s3
s.something(...)
s2.something2(...)
s3.something3(...)
