Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Update record
Message
De
17/10/2001 02:42:58
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
17/10/2001 01:21:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00569376
Message ID:
00569417
Vues:
24
>Hi Sergey,
>
>I still have one more question, I hope I don't disturb you too much.
>
>Is there a way where I can convert the datetime value of an object of a class/DLL to date type?
>
>I have a form that has a textbox in it, the control source of the textbox is an object from the dll that was created in the load even of the form. The dll fetches the data from a date field in a table and stores the value to one of its object. The problem is that it is being stored as "datetime" type. and the ouput is that it displays the date and time in the textbox instead of date alone. Any Ideas? I tried to use the ttod() function but it still returns a datetime type.

You can always convert it using TTOD() function. You can make it a value_assign method, so

LParameters vNewValue
if vartype(vNewValue)=T"
vNewValue=ttod(vNewValue)
endif
this.value=vNewValue
return vNewValue

When sending the value back to SQL, do just as you already do (convert back to datetime).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform