At 09:10 PM 2/12/2008, Fred C Kopp wrote:

My questions are so lame that it's embarrassing, but I still need answers.

I have an UNDO button on a form to revert every field back to it's original
value.  The DB Navigator Cancel button doesn't revert lookup variables, and
neither will any of the preset EEPs, so I built my own button.

In Table Settings - On Row Entry EEP, I use "GETPROPERTY CompID TEXTVALUE
vcolvalue" to collect each DBEdit value.

Then, on the UNDO button EEP I use "PROPERTY CompID TEXTVALUE .vcolvalue."
This works fine for all my fields, including Text, Integer, Date and Note.

The problem is when I replace a DBEdit Integer control with a DBEdit Spin
control.  I can't make the value revert with this technique EVEN THOUGH a
DBEdit Spin control value WILL revert with the standard  DB Navigator
Cancel button.  (But I don't want TWO buttons.)

I'd like to use the Spin control because it's just...well...COOLER, but I
need to be able to undo it.  Any thoughts?


Fred,

Did you know that you can revert or cancel anything by simply using the one
PROPERTY command?

Just place a Push Button, Bit Button, Speed Button, or Office button with
the following Custom EEP.

PROPERTY TABLE <FormTableName> 'CANCEL'
RETURN

Where <FormTableName> is the actual table associated with the form and all
related DB Edits, including the DB Spin Edit.

Hope that helps!

Very Best R:egards,

Razzak.


Reply via email to