Page 1 of 1 1
Topic Options
#18862 - 2002-03-20 03:51 PM Use and array doesnt work
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Hello everyone

I have one array with letters in $Array[0] and sharename in $Array[1].
Ex $Array[0] = G
$Array[1] = Server\Share
Now I want to do like this:

Use $Array[0]+":" + " \\"+$Array[1]

But I cant get this to work !!!!???????
HELP me

/Mima500

Top
#18863 - 2002-03-20 03:54 PM Re: Use and array doesnt work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Try this:
code:
Dim $array[1]
$Array[0] = 'G'
$Array[1] = 'Server\Share'
Use $Array[0]+':' '\\'+$Array[1]

_________________________
There are two types of vessels, submarines and targets.

Top
#18864 - 2002-03-20 04:11 PM Re: Use and array doesnt work
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Thank you It work.

Whats the differens between using 'G' or "G" ?

/Mima500

Top
#18865 - 2002-03-20 04:14 PM Re: Use and array doesnt work
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It's not the quotes but rather the +
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#18866 - 2002-03-20 05:33 PM Re: Use and array doesnt work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
I'm using the ' as a string delimited in case I need to wrap a filename in "" because of spaces in it. It's just the way I write my code.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 168 anonymous users online.
Newest Members
FlyHorton, mschwj, Barchester, Evgeniy, kvanacker
17498 Registered Users

Generated in 0.041 seconds in which 0.021 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org