PDA

View Full Version : vb string array question


thegreatone2176
03-20-2005, 11:51 PM
in other languages like php you can do

$out = array("one","two");

and load a string array in one statement. is there a way to do this in visual basic? i googled and checked my book but didnt get anything

CrzySdrs
03-21-2005, 07:05 AM
Well, I can't think of an officially sanctioned way, but you could cheat and do something like:

Dim array() as String
array = split("one,two", ",")

And that in theory should work.