Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping the Valid - VFP5
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00155802
Message ID:
00155817
Views:
18
Kirk,

I'd unbind that control from the table field. You are much freer to do what you please with it then.

Also look setting .Cancel=.t. on your Revert button. Then your Valid can test lastkey()=27 to know if the button was clicked.

>I have a form where the user enters a stock Number. In the valid clause I check to make sure that it is not a duplicate. If it is, I return .F. I used the basic form wizard to create the form. So my user is sitting in add mode, and now that they know the stock number is already on file, they want to click revert. The only way they can is to type a unique stock number and then click revert. Is there a way to avoid the valid if they click on revert or close the form?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform