Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,713 of 10,840    |
|    Rick Rothstein [MVP - Visual Basic] to All    |
|    Re: Resource files and string arrays    |
|    28 Oct 05 12:25:04    |
      From: rickNOSPAMnews@NOSPAMcomcast.net              > >I've not worked with Resource File personally, so I can't help       you       > >out with questions related to it directly. However, combining a       > >one-dimensional array into a single String and recovering the       > >array back again from the String are very simple things to do       in       > >VB6.       > >       > >Array to String       > >================       > >Dim YourArray() As String       > >Dim Delimiter As String       > >Dim CombinedArray As String       > >Delimiter = vbTab       > >CombinedArray = Join(YourArray, Delimiter)       > >       > >String to Array       > >=================       > >Dim YourArray() As String       > >Dim Delimiter As String       > >Dim CombinedArray As String       > >Delimiter = vbTab       > >YourArray = Split(CombinedArray, Delimiter)       > >       > >       > >       > Sweet, I didn't know VB had Perl-like split & join functions.       Thanks!              Prior to Version 6, it didn't.              Rick              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca