#123388 - 2004-07-20 11:08 PM
accessing array elements
|
solostyle
Fresh Scripter
Registered: 2004-07-20
Posts: 15
Loc: maryland, us
|
all right hi folks.. all my comments are below Code:
;so there's these two arrays $num = "1","2","3" $alph = "a","b","c" ; ; ;and i wanna write them to a file for $i = 0 to ubound($num) shell "%comspec% /cecho $num($i),$alph($i) >> someFile.txt" next
but my file will say: Quote:
$num(1),$alph(1) $num(2),$alph(2) $num(3),$alph(3)
What I want is: Quote:
1,a 2,b 3,c
What's annoying is that I just can't find any documentation of accessing elements that actually works. This should be easy as pie. Thanks for any help!
_________________________
kickin it solo
|
Top
|
|
|
|
#123390 - 2004-07-20 11:18 PM
Re: accessing array elements
|
solostyle
Fresh Scripter
Registered: 2004-07-20
Posts: 15
Loc: maryland, us
|
yeah baby. you rock. it worked!
_________________________
kickin it solo
|
Top
|
|
|
|
#123392 - 2004-07-21 01:20 AM
Re: accessing array elements
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Think he meant you were thick headed or something. You a ROCK
|
Top
|
|
|
|
#123401 - 2004-07-22 03:20 PM
Re: accessing array elements
|
solostyle
Fresh Scripter
Registered: 2004-07-20
Posts: 15
Loc: maryland, us
|
what's the percentage of moderators out of the total number of registered members?
_________________________
kickin it solo
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 262 anonymous users online.
|
|
|