Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign a date type data to a memvar?

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
566
0
16
US
Colleagues,

The question in subject says it.
I, actually, need a date type expression in a comparison clause, i.e.
Code:
REPLACE Field1 WITH Field2 FOR DateField >= {certain date}
I'm kinda spoiled by VFP, where DATE() can return not only the current date, but any (valid) date if its call is given the arguments, i.e.
Code:
WAIT WINDOW DATE(2011,12,31)
displays 12/31/2011.
Another way of composing a date data (in VFP, at least) is
Code:
m.ldMemVar = {^2011-12-31}
I tried that in VdB - and it erred with "Expression expected" message.

AHWBGA!


Regards,

Ilya
 
Actually - I was having "senior moment": I totally forgot about CTOD() function!
The problem's resolved!
Sorry for the unnecessary disturbance.

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top