Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select All Checkboxes in ListView Control 6.0
Message
 
To
01/02/2002 09:22:49
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00613962
Message ID:
00613974
Views:
9
Hi!
For Each item In thisform.pageframe1.page1.ListView1.ListItems
    item.Selected = .T.
EndFor
>Again, I'm fairly new to VFP and ActiveX Controls. I can now populate my list view with data from a table, but how might I go about doing a Select All on those checkboxes, i.e., I have a 'Select All' button and want all checkboxes to be checked on a click event.
>
>Here is my code I used to populate my list in the forms Init event.
>
>SELECT billingcycles
>GO top
>nCnt = 0
>DO WHILE NOT EOF()
> nCnt = nCnt + 1
> thisform.pageframe1.page1.ListView1.ListItems.add(nCnt,,billingcycles.bi_desc)
> SKIP 1
>enddo
>thisform.Refresh()
>
>Thanks for any response,
>
>Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform