Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date/Datetime in grid problem
Message
From
10/02/2000 10:01:36
 
 
To
10/02/2000 09:05:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00329365
Message ID:
00329980
Views:
21
I don't know, if it works:
columnX.ControlSource='ttod(table.DateTimeField)'
columnX.AddObject('control2','ShowOnlyDate')

class ShowOnlyDate based on TextBox:
Init()
this.ControlSource=''
GotFocus()
this.value=ttod(evaluate(table.DateTimeField))
LostFocus() or Valid()
replace (table.DateTimeField) with dtot(this.value)
TableUpdate() ...

and with Grid.AfterRowColChange() or ColumnX.DynamicCurrentControl
set Control to 'text1' or 'control2'

Pavel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform