View Single Post
 
Old April 26th, 2005, 07:59 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The { } syntax is for literal strings separated by commas. The compiler is seeing one value: your variable (which happens to be a string with commas in it).

Use the Split method to take your string and make an array out of it.

'ADD STRING OF DETAILS TO aOptData
aOptData(i) = sOptDtls.Split(","c)

(The trailing c on the argument specifies the string literal as a char vs a string.)

-Peter