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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Calendar control question 1

Status
Not open for further replies.

JerMyster

IS-IT--Management
Mar 17, 2003
49
US
I'm using VFP 7 and have the OLE calender control in it.

All works well but one thing; I can't make the control show todays date and the current months without having the user press the today control in the calender control when the form is first created.

Is there a way to have the control look at todays date and change the control default date to today.

Thanks
 


In the init of the control put:
Code:
this.olecontrol1.OBJECT.Value = DATE()

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks, you guys are the best.

I had a little problem but changed the line to this._value=date() and it works great.

WOULD HAVE BEEN SCREWING WITH IT FOR ANOTHER DAY IF NOT FOR YOUR HELP.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top