Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to control the date validation for the TextBox?
Message
From
22/05/1999 03:02:26
Rajatkanti Bagadthey
Skynet Systems P Ltd
Kolkata, India
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00221016
Message ID:
00221707
Views:
28
if ur looking for date fields bound to tables, this is how i
handle it
1. for the table fields i place the validation for the field &
the validation text and default value
... i must have a valid expression in default value
2. in the textbox baseclass valid
local cs
cs=this.controlsource
if !empty(cs)
if !empty(dbgetprop(cs,"FIELD","RuleExpression"))
if eval(dbgetprop(cs,"FIELD","RuleExpression")) = .f.
this.value=iif(isnull(oldval(this.controlsource)),eval(dbgetprop(cs,"FIELD","DefaultValue")),oldval(this.controlsource))
return .f.
endif
endif
endif
return .t.
Previous
Reply
Map
View

Click here to load this message in the networking platform