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!!