Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modify structure in code?
Message
 
To
04/12/1998 20:55:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00163936
Message ID:
00164451
Views:
24
Hi Justok,

Thanks for telling me not to tamper with the table during run-time.

I solved it like this:
I used Afield() to get an array with fieldnames from the table, stored the fieldnames in another array, added a sortnumber in the new array, checked the preferred language, changed the sortnumber to 1 for the preferred language, sorted the new array on sortnumber. Then I use the new array when I create my popmenu or when I am changing the caption of the labels and the controlsource of the textbox. Voila!

It works and I still won't be changing any code if I add a new langauge.

/Pierre Unge, Sweden


>I agree Paul's view, it is not good on modify structre at run-time!
>
>1. You need to Exclusive right on table, it is NOT flexible for
>multi-user
>2. In case your application crash during reformat the table, you lose ur table!
>
>
------------- if you cut here, you'll probably destroy your monitor ------------
Previous
Reply
Map
View

Click here to load this message in the networking platform