Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp - adding a record...
Message
 
À
14/02/1997 16:29:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00020602
Message ID:
00020700
Vues:
54
This is Robert Keith first Message : Could someone give me some ideas on how to add a record using the local dbf other than using "append blank". I want to use scatter memvar blank, but I do not know how to draw my form so it displays blank fields. thisfor.refresh will not do that. If I can redraw my form, on save, I can use "insert into". My code is ... NEW button.. "scatter memvar blank" SAVE button "insert into dbf from memvar" rob > > in specific variables, any control has some appropriate properties, mostly > Value property, to store and check user-entry activity temporarily. > >>> > >>>Ed...that answer is great... > >>> > >>>Now we are getting close to what I am looking for. What code do I put > >>>in the "Click event" of the "add a record" button. I must show blank > fields for the user > >>>to add??? > >>> > >>>Thanks > >>> > >>>Rob > >> > >>Yes. You can invoke new form with empty (filled by default values) > controls or just 'clean' edit form. > > > >How do you do that??? > >Rob > > You have to go through all controls changing Value properties. Normally > your form could include some custom method to refill controls by default > values (for new record) or by record values (to edit existing record). Hi Rob, Ed ! I also use the same approach as Rob did because of the same conditions and I don't have a problem with it. Besides that is the simplest way I know. (I'm new to VFP, and using 3.0). Rob, could you give me more detail about your problem ! I don't really understand your question ! What do you mean you don't know "how to draw your form so it displays blank fields". Regards Tony
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform