mima
(Hey THIS is FUN)
2002-03-20 03:51 PM
Use and array doesnt work

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


Sealeopard
(KiX Master)
2002-03-20 03:54 PM
Re: Use and array doesnt work

Try this:
code:
Dim $array[1]
$Array[0] = 'G'
$Array[1] = 'Server\Share'
Use $Array[0]+':' '\\'+$Array[1]



mima
(Hey THIS is FUN)
2002-03-20 04:11 PM
Re: Use and array doesnt work

Thank you It work.

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

/Mima500


Les
(KiX Master)
2002-03-20 04:14 PM
Re: Use and array doesnt work

It's not the quotes but rather the +

Sealeopard
(KiX Master)
2002-03-20 05:33 PM
Re: Use and array doesnt work

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.