Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE File Will Not Run
Message
From
15/07/2005 09:46:35
 
 
To
15/07/2005 09:26:36
Herman Sanders
Department of Workforce Services
North Little Rock, Arkansas, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01031262
Message ID:
01033020
Views:
24
>Could you help me with this: What is the code I put on a control button on a form to add a record, and what is the code would I use to then save the record?

Herman

I can see these questions ballooning out of control. You need to learn the language before you can build apps. However, if you know FoxPro at all then the following commands add a record, and you should look them up in Help

Append Blank
Insert into ...

Besides this, you need to make your tables buffered (see table buffering) by setting their BufferModeOverride property to what best suits your circumstances (but generally 3 or 5 surfice, depending on whether you update 1 or many rec's simultaneously, respectively), in the Data Environment.

So when you want to save the rec you issue TableUpdate() or, to undo, TableRevert().

The above commands you can put in buttons, or form methods which you call from the buttons.
Howewver, most people would make a Class of the save button, new button, etc.

I could go on forever :-)

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform