Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting datetimes to dates
Message
From
15/08/2003 04:49:32
 
 
To
14/08/2003 15:13:39
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00820295
Message ID:
00820410
Views:
16
Hi Joseph,

uses of
- SPT
- MSSQL DATETIME()
- OBJECT.CONTROLSOURCE
in readwrite mode is impossible without some trick.

With CONVERT() or CAST() you cannot gain none.

WorkArounds:

For Read Only use
TTOD(field)
For readwrite:
use a datetime ActiveX ( slow )

or

Implement a textbox class with:

dataSource    = '' && write your controlsource field here
ControlSource = this.dataSource

PROCEDURE dataSource_Access
RETURN TTOD(EVAL(m.this.dataSource))
ENDPROC

PROCEDURE dataSource_Assign
LPARAMETER newValue
STORE DTOT(m.newValue) TO (m.this.dataSource)
ENDPROC
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform