Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help! - creating a setting a complex variable

Status
Not open for further replies.

feathers

IS-IT--Management
Nov 8, 2002
4
ZA
Thanks in advance!

Okay, so I have an array:

dim myArray(2)
myArray(0) = "hello"
myArray(1) = "goodbye"

then I need to make a variable by taking the string value of one of my array elements, adding it to another string, and setting it to a value.

So, what I tried to to was:
myArray(0) & "John" = "string"

...but that doesn't work

Any ideas of the syntax to create a new variable this way?

THANK YOU!!!
-Mac
 
...
Dim greetings
greetings = myArray(0) & " " & "feathers"
WScript.Echo greetings

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top