Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box mulitselect?
Message
From
31/01/2003 09:42:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
List Box mulitselect?
Miscellaneous
Thread ID:
00747649
Message ID:
00747649
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform