Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Update record
Message
From
17/10/2001 02:42:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/10/2001 01:21:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00569376
Message ID:
00569417
Views:
23
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform