Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YACC Class
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00057025
Message ID:
00057107
Views:
25
>Barbara- I am working with the YACC class that you suggested, and have a question. How do I set the initial display date? I have tried setting value and displaydate, both to no avail. The help says that the value is passed to the control's init as dstart, but I have never passed a value to a control added at design time. How do I do it? Thanks

Erik, first you have to make sure you're using their txtdate or txtdatetime class for your textbox control. Just drag it from the library to your form in place of the the standard VFP base textbox or your other custom textbox. I've actually subclassed it with my other controls, adding a couple of minor changes.

A right-click on the date textbox will call their popup form, either dateselform or datetimeselform. If your field HAS a date, that will be passed, and the calendar will show that date. If your field is blank, the calendar will default to date(). Check the right click code on the txtdate class and the init on the dateselform class.

In your form, if you want to set a default date for the field, you can enter it into the VALUE property, as { / / } (blank date) or as date() for today's date.

If you have any more problems, feel free to e-mail me directly. I see e-mail before I see UT messages most days.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform