Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox invert problem
Message
From
10/01/2005 16:28:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/01/2005 16:12:06
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975756
Message ID:
00975818
Views:
9
>>Would this do?
>>
>>Lparameters pcSelectionType
>>
>>** parameter and property check
>>If Vartype(pcSelectionType) # "C" Or !This.MultiSelect
>>    Return
>>Endif
>>
>>Local lnThisItem
>>With This
>>    For lnThisItem = 1 To .ListCount
>>        .Selected(m.lnThisItem) = ( m.pcSelectionType = "ALL" Or ;
>>            (m.pcSelectionType = "INVERT" And !.Selected(m.lnThisItem)))
>>    Endfor
>>Endwith
>>
>
>Cetin.
>
>The code looks great and once again "ALL" and "NONE" function properly but "INVERT" act as though I have passed "ALL".
>
>This is one frustrating problem.
>
>Todd

Todd,
It was written off the top of my head but now I just tested it and works.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform