Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update a form property
Message
 
À
04/06/2002 12:04:00
Carlos Mergal
US Bankruptcy Court - Puerto Rico
San Juan, Porto Rico
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00664553
Message ID:
00664695
Vues:
24
Carlos,

I know the OOP police are going to string me up for saying this but here goes:

We have a MAIN.PRG that we always start everything from. At the top of that program it opens a table of setup values and reads each one into a memvar.

use setup
scan
memvar = alltrim(setup.varname)
&memver = setup.value
endscan

Becuase the memvars are created at the top of the 1st program they are basicly global.

In the setup program there is a procedure for each of the records in the setup table. The user goes into the setup program, selects the record in a grid, the procedure is run, user changes value (proc validates), user saves. A bit of work to create the 1st time but once created it is just a matter of adding records and procedures as time goes on. We now have about 100 memvars we create this way in our largest system.

John.


>How do I update and save a property in VFP 6.0. For example I have a text object with a value of "x" and I want to change this value to "y" so when the next time the form comes up it defaults to "y".
>
>TIA
>
>Carlos
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform