Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Datetime value to Date (DLL)
Message
From
17/10/2001 05:03:11
 
 
To
17/10/2001 01:17:34
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00569405
Message ID:
00569436
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi!

Do not bind textbox to that object property. Leave control source empty. In the Refresh event of the combobox assign date value to the Value property of textbox after converting datetime to the date using TTOD() function. Use Valid event of textbox to assign value to the object property back after editing.

>Hi Guys,
>
>
>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 during the form is loading. 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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform