Solved

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

Posted on 2006-06-21
3
146 Views
Last Modified: 2010-04-30
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??
0
Comment
Question by:eneate
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
dancebert earned 500 total points
ID: 16955328
Resource Files were designed specificaly for this.

http://www.codetoad.com/vb_resource_files.asp
0
 

Author Comment

by:eneate
ID: 16961326
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.
0
 

Author Comment

by:eneate
ID: 16963572
Thanks I've figured it out and it will work fine, thanks for the response.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Script Host failed (Access is denied.) error 6 226
Excel - Save a copy of work book 13 89
Copy a row 12 64
MS Access 03, TransferText, decimal places 8 78
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

860 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