Solved

Sting Table

Posted on 2002-07-18
5
162 Views
Last Modified: 2010-05-02
Is it possible to select a string table in a resource file and display the data without the help of regional settings.
0
Comment
Question by:LPlate
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Expert Comment

by:AlonHirsch
ID: 7161829
Hi,

AFAIK it is possible to simply get the resource from the file using the resource ID.

The syntax is LoadResString(resID) where resID is the ID of the string you want to load.

I haven't tried with other languages though ;-)

HTH,
Alon
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 7161911
I prefer to use the resource file as a single column flat file.

I use 1 to 9999 for english and 10001 to 19999 for french (having the same strings in 1 and 10001, 2 and 10002, ...). I ask the user which language he/she wants. If the answer is english, then I set an offset variable to 0. If the answer is french, I set the offset to 10000.

When I need a string, I use this syntax:
LoadResString(intOffset + 1)
0
 
LVL 4

Expert Comment

by:gencross
ID: 7163187
emoreau...clever :)
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7348088
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7373326
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question