Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assign a temporarily variable

Status
Not open for further replies.

D2C

Programmer
Aug 27, 2001
86
BE
Hi there,

I would like to make a function that secures the data in my tables.

Let's say I have a form with two textboxes, name(name) and family name (famname).

If the user clicks on an edit command button, I want to store the data that was currently in the text box (originally from the database) in a temporarily variable, xname and xfamname.
After the user has completed his change, he should click on a button to store the changes in the database. So the temporarily variables will overwrite the data from the cell in my table.

Can somebody help me out on this one, because I do not have any clue on how to start...

tnx a billion,

greetz,
D2C
 
If I understand you correctly I think you can accomplish what you want by using table buffering (see CURSORSETPROP()). If the table is buffered you can save the changes via TABLEUPDATE() or cancel them via TABLEREVERT().

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top