Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Box mulitselect?
Message
De
31/01/2003 09:42:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
List Box mulitselect?
Divers
Thread ID:
00747649
Message ID:
00747649
Vues:
50
Good morning all.

I'm updating an existing system written in 5.0. I've included a list box which uses codes.code, codes.desc for users to select a type of activity. Once they have selected the type and saved the table, the code for activities selected is housed in records.types field.

When to user re-edits the id, I would like to high-light those fields which are stored in the table to show what is in the database. I'm not sure what which properties to set in the listbox.

This is the code I was trying and it didn't highlight the needed selections but the for loop works fine.

FOR i= 1 to ThisForm.List1.ListCount
a = at(ThisForm.List1.ListItem(i),records.type)
if a <> 0
thisform.List1.Selected(i) = .t.
endif
endfor

Thanks for any help!
Sunshine
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform