Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5, Suggestions, Same App in English and French
Message
 
To
05/01/2004 17:57:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863849
Message ID:
00864108
Views:
16
Will the assignment to global variables make an impact, in terms of pyhsical memory limitations.

>>Hi Hilmar
>>
>>I like your idea of a text/dbf for switching text on the fly. I had completely forgotten about labels, I was thinking about string messages.
>
>Well, there are several things you will have to personalize. Label caption, Form caption, Option (in an OptionGroup) caption, Menu texts, menu message, menu shortcuts (for File you would want Alt-F; for Datei (the same in German) = Alt-D, etc.). And then, of course, your MessageBoxes.
>
>> This idea looks good, but what are the overheads of poluating labels and strings at runtime?
>
>I didn't try this myself in detail, I only helped a client set things up.
>
>The text file is read on application startup. This should be relatively fast, and is done only once. Here, I would say a text file can be faster in principle, but I am not sure. Note that you can also use a DBF for easy maintenance, but give the user the final version as a text-file, which you generate. This gives them the option of adding languages, without your intervention. (You may, or may not, desire this!)
>
>Then, in each form, you must do some assignments, perhaps in Form.Init(), or a method called from there:
>
>
>ThisForm.LblClient.Caption = gc_ClientName
>ThisForm.LblPrice.Caption = gn_Price
>...
>
>
>I think this should be quite fast, too, but I suggest you do some speed tests.
>
>HTH,
>
>Hilmar.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform