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,711 of 10,840    |
|    Adam Parkin to Steve Gerrard    |
|    Re: Resource files and string arrays    |
|    28 Oct 05 16:13:21    |
      From: pzelnip@hotmail.com              Steve Gerrard wrote:              >7. To use a string, use code like this:       >       >Private Sub Command1_Click()       > Dim S As String       >       > S = LoadResString(101)       > MsgBox S       >       >End Sub       >       >If all is well, you should get the message "First One".       >       >The big deal with string tables is that you can add a second string table,       >selecting "French (France)" as the locale ID. Then for 101, you enter       "Premier".       >If users run your program in France, they will get the message "Premier"       instead       >of "First One". Automagically!       >       >       Thanks, but that part I already knew. The problem with this version is       that if I have 100 entries in the array, I have to create 100 strings in       the table, which isn't a problem code-size wise but is certainly a data       entry pain in the #@$@.              Adam              --- 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