General information
Category:
Coding, syntax & commands
Title:
List Box mulitselect?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only