Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate controls or fields
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Validate controls or fields
Miscellaneous
Thread ID:
00667196
Message ID:
00667196
Views:
53
Is there a recommended method to validating data on a form?

Assuming the control is bound to a table field...

Which is better?
if empty(table.field) then
  =messagebox('this field cannot be empty')
  return
endif
or
if empty(thisform.text1.value) then
  =messagebox('this field cannot be empty')
  return
endif
Next
Reply
Map
View

Click here to load this message in the networking platform