Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX Calendar
Message
From
06/05/2000 10:50:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/05/2000 10:12:07
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00366351
Message ID:
00366960
Views:
13
>Hi Doru.....
>
>I guess I just don't get ole controls quite yet. Your note mentioned that both controls have a value property of type datetime. How do you use it and where is it?
>
>It is not listed in the properties list for those controls and when I tried to assign the result of the users pick (m_datetime = thisform.olecontrol1.value) I get a vaule property not found error.
>
>I like the date time picker a little more (as far as looks) than the calendar.
>I'm trying to give the user this functionality.
>
>1)Double click date field to bring up picker (This I've figured out!!!)
>2)Double click on date once it is found any in doing that.... a)close picker (I've got that too) and insert date and time in field...(this I do not have!)
>
>3) I want the time part of the datetime to be the current clock time. (what you addressed in your first reply)
>
>I've managed to figure out some of it.... the part of getting the selection into the field with the picker is what I can't get.
>
>In playing around with it the calendar control seems to put it in the field just fine but I sometimes need it to work with a variable and not a field.
>
>Thanks for your thoughts......
>
>T


Those OLE controls have a value property of type datetime.
m_datetime = thisform.olecontrol1.value
fails for "value" is messed up with VFP value keyword. Object keyword resolves the conflict.
m_datetime = thisform.olecontrol1.Object.value

Also you might use its year, month, day etc properties to set&get datetime.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform