Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FYI : Setting datetimepicker value
Message
From
02/09/1999 06:59:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
FYI : Setting datetimepicker value
Miscellaneous
Thread ID:
00260511
Message ID:
00260511
Views:
57
Hello gang,
I attempted to really use one of those ActiveX at last :) and hit the problem of setting "value" property. Solutions I found here on UT doesn't work for me :( I found another way that works :) Hope helps to you too.
with ThisForm.OleDate
	myDate = date()+5
	.Object.Value = myDate && Doesn't work - error
	.Value = myDate && Doesn't work - error
	.Year = year(myDate)
	.Month = month(myDate)
	.Day = day(myDate)
endwith
With .Value and .Object.Value :
Error is "Type mismatch" :) ActiveX has more types than VFP ?
Tried combinations of myDate as date(), datetime(), ttoc(), dtoc(), dtos(), realnumber etc etc
In help it says dateexpression is any literal, numeric that's interpretable as date and syntax is as :
object.Value [= date]
but simply I couldn't find a literal, numeric,date, datetime type expression to make it work.

Mindate has syntax :
object.MinDate [= date]

and
ThisForm.OleDate.Mindate = date() && Works !!!???

I really want to use "value" in fact. Anyone that knows a way to make it work with "value" are wellcomed.
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
Next
Reply
Map
View

Click here to load this message in the networking platform