Sign in to follow this  
Followers 0
netegg

help(maybe easy)

3 posts in this topic

#1 ·  Posted (edited)

how to convert a array variant name to a simple variant name? Just like convert $a[1] to $a1 ... $a[n] to $an

Edited by netegg

Share this post


Link to post
Share on other sites



$a1=$a[1]

?

Share this post


Link to post
Share on other sites

Store all of the array elements and their values into variables (kind of like PHP Extract)

For $X = 0 to Ubound($a) - 1

Assign ("a" & $X, $a[$X])

Next

-or-

Just assign blank values.

For $X = 0 to Ubound($a) - 1

Assign ("a" & $X, "")

Next

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0