Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modify structure in code?
Message
 
À
04/12/1998 20:55:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00163936
Message ID:
00164451
Vues:
32
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 ------------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform