Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variables in a function
#1
Gintaras,

I remember there's a way to work with variables in a function...but I can't remember how.

Say I have ten string variables and I want to URL encode all of those with one call, how could you do that?

thanks,
Jim
#2
Macro Macro1780
Code:
Copy      Help
str s1 s2 s3 s4 s5 ;;must be local variables, like here; then they are allocated as array

str* p=&s1; int i
for i 0 5
,p[i].from("var" i)

for i 0 5
,out p[i]


Forum Jump:


Users browsing this thread: 1 Guest(s)