Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save control item values for load later for its
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00967140
Message ID:
00967165
Vues:
8
>Hi All,
>i wantto keep textbox,checkbox,optiongroup,combobox etc. selected or filled values on my query forms and store these values to a .dbf file for use later that users can be load from file and controls will be autofill with saved values . for this target how wouldbe .dbf file structure and how can i save its to the file and restore its from file ?
>
>TIA

There are many ways to do that. Typically this should be the finction of your subclassed control in your framework. For example, Codemine framework has .lValueMemory property, for all applicable controls. If .lValueMemory property is set to .T., the value is converted to text and stored in the registry (somewhere under HKEY_CURRENT_USER). However you can use the DBF on the local PC for that, if you want. When needed, the value is converted back from the text into the value type corresponding to this control, checked by the control's Valid() method, and restored as a control value if it passes validation.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform