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!

How to assign variables to an array elements

Status
Not open for further replies.

kdjonesmtb2

Technical User
Nov 19, 2012
93
US
Hello,

I would like to assign variable names to the elements of this array

See inputText below:

inputText is a text field coming from a web application

dim outputArray
dim inputText
dim message

inputText = "6:CPT:97014:1"

outputArray = split(inputText," :")

for each x in outputArray
message = message & x & vbCRLF
next

msgbox message
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top