Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autoselecting list items
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Autoselecting list items
Divers
Thread ID:
00002668
Message ID:
00002668
Vues:
82
I need to be able to add employees to a list using addlistitem as various organizational units are selected. These employees can belong to multiple organizational units, so I'm using employeeID for my ItemID to prevent duplication. So far, it's simple.....

These employees must appear on the list as selected (the user will de-select unwanted employees).

Here's what does NOT work:
SCAN <>
THIS.addlistitem(empID, emplID, 1)
THIS.addlistitem(empName, empID, 2)
THIS.<>.selected(ItemIDToIndex(empID)) = .T.
ENDSCAN
This code does add the employees to the list, but they are not selected.

I can't just follow the SCAN with a loop through the list turning the selected property on - that would un-de-select (ain't english wundermous !) the employees the hapless user had already culled.

According to "The hacker's Guide", the SelectedID property is not reliable (Tamar and Ted have been right on every other thing I've checked)

Any help or suggestions appreciated
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform