Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting datetimes to dates
Message
De
15/08/2003 04:49:32
 
 
À
14/08/2003 15:13:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00820295
Message ID:
00820410
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform