How to define large list of strings in Visual Basic

Posted by Jenny_Winters on Stack Overflow See other posts from Stack Overflow or by Jenny_Winters
Published on 2014-05-26T19:13:54Z Indexed on 2014/05/26 21:26 UTC
Read the original article Hit count: 77

Filed under:
|
|

I'm writing a macro in Visual Basic for PowerPoint 2010. I'd like to initialize a really big list of strings like:

big_ol_array = Array( _
"string1", _
"string2", _
"string3", _
"string4" , _
  .....
"string9999" _
)

...but I get the "Too many line continuations" error in the editor. When I try to just initialize the big array with no line breaks, the VB editor can't handle such a long line (1000+) characters.

Does anyone know a good way to initialize a huge list of strings in VB?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about vba

Related posts about powerpoint