Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox highlighting current record when starting?
Message
De
28/10/1999 18:46:57
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox highlighting current record when starting?
Divers
Thread ID:
00283479
Message ID:
00283479
Vues:
54
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!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform