Link to home
Start Free TrialLog in
Avatar of eneate
eneateFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Loading text from an external file, can I use a text file or would a ms access type database work better

Hi All

I need to load text into an application from an external file. The external file will be duplicated in different languages and which ever language is selected that file will load in. I already use this for my forms etc.
However in one form I am continually loading the text into a rich text box and as the text is loaded from an array (i. e. it is all loaded every time it is accessed) after so many lines it crashes the software.
With the same code if it is just direct text in the code it no longer crashes.
I need a more efficient way to load the text and am considering something like an access database file.
At present to call the text I just use text(56) which calls the text in line 56
What would be the most memory efficient way to implement this
Ideas??
ASKER CERTIFIED SOLUTION
Avatar of dancebert
dancebert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eneate

ASKER

OK, I've tried a resource file and can add text as loadresstring(101) but I need tobe able to have several identical res files each in a different language so that if the user has selected french, when the code runs loadresstring(101) will load in the french file and not the english one.
How can I differntiate between the different resource files. I don't want to have to complile a different exe for each language.
Avatar of eneate

ASKER

Thanks I've figured it out and it will work fine, thanks for the response.