Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox highlighting current record when starting?
Message
From
28/10/1999 18:46:57
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Listbox highlighting current record when starting?
Miscellaneous
Thread ID:
00283479
Message ID:
00283479
Views:
55
This is probably a simple questions with a simple answer BUT.....

I have a very simple form with a single list box, an OK and a CANCEL button. The list box is two column both from the same file. Column 1 is a date, column two is text. The table is listed in the DE and the ORDER is set to the DATE index.

When the form inits, the listbox is correctly filled, etc. I pass to the form a parameter that holds the current entered date. (in a date type field). I would like the current entered date to be highlighted in the list box. HOW?

I also noticed, when I highlight a date and hit the OK, the BOUND field of the listbox (column 1) causes the VALUE of the listbox to be filled with the date from the table (in text-not date type). I suppose I could pass that back to the calling form. Is that the best way? If so, I assume I can use a CTOD to convert it back to date format?

Thanks
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Next
Reply
Map
View

Click here to load this message in the networking platform