• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Sting Table

Is it possible to select a string table in a resource file and display the data without the help of regional settings.
0
LPlate
Asked:
LPlate
1 Solution
 
Alon HirschSoftware Development ManagerCommented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
gencrossCommented:
emoreau...clever :)
0
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
NetminderCommented:
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now