String to array of string array

J

John

Hi

How can I cast a string variable to a one element string array of one
dimension? I need this to pass a string value to a sub that accepts an array
of string as parameter.

Thanks

Regards
 
C

Cor Ligthert[MVP]

John,

You cannot cast a string to an array of strings, you even cannot convert it,
the only thing you can do is set a string in a string array.

While as that is a one elemenet string array then it is.

TheArray(0) = TheString

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top