From: mynamehere@comcast.net   
      
   "Adam Parkin" wrote in message   
   news:ho78f.62395$Io.5074@clgrps13...   
      
   > The potential solutions I see are:   
   >   
   > 2) To make a custom resource, and store the string array as a custom   
   resource,   
   > and re-load it back into my application. This seems the more elegant   
   > solution, but I have no idea how to go about doing this.   
      
   1. Activate the Resource Editor, by going to Add-Ins, Add In Manager... Find VB   
   6 Resource Editor in the list, and check the Loaded/Unloaded checkbox. Close   
   the   
   manager form.   
      
   2. Click on Tools, Resource Editor.   
      
   3. In the resource editor, click the "abc" button, with tooltip "Edit String   
   Tables..."   
      
   4. For ID 101, enter "First One". Press Enter. For ID 102, enter "Second One".   
   etc.   
      
   5. Close the string editor. Click the Save button in the resource editor. Use   
   any file name you like.   
      
   6. This will add a resource file to your project, listed under "Related   
   Documents". It will be compiled into your executable.   
      
   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!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|