Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing new records from being added to a table
Message
From
27/12/2006 20:13:23
 
 
To
05/12/2006 12:54:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01174981
Message ID:
01180620
Views:
10
Dear Jhon,

Al moment to Save perhaps is not necessary the boton to Ignore, seems me better to have alone the boton OKr and to Cancel.

It tests placing this code in the event Click of the Boton to Save, I expect help you in something.
****************************
* cmdSave.Click
nresp = MESSAGEBOX ('It desires to keep the data ? ',1+32+256,'message of the system')
DO CASE
   CASE nresp=1 && Si es OK
        TABLEUPDATE(.T.)
   CASE nresp=2  && Si es Cancel
        TABLEREVERT(.T.)
ENDCASE
Thisform.Refresh
***************************************** 
Saludos,

Roberto Reyna
rreynac61@yahoo.es
http://groups.msn.com/nexcomgs
CHIMBOTE - PERU
Previous
Reply
Map
View

Click here to load this message in the networking platform