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
.Value = myDate
.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