Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Greying out items in a combobox
Message
From
20/03/2009 11:55:40
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01390031
Message ID:
01390038
Views:
61
>Can anyone give me some help on how to grey out an item in a combobox. Here's the code I have so far:
>
>LOCAL lcAlias, liProjKey, lcType
>
>lcAlias = Alias()
>liProjKey = projects.projkey
>
>SELECT activity_type ;
> FROM projects ;
> WHERE projkey = liProjKey ;
> INTO CURSOR curTypes
>
>SCAN
> lcType = activity_type
> =Ascan(Thisform.aactivitytype,lcType,,,2)
>ENDSCAN
>
>IF !Empty(lcAlias)
> Select(lcAlias)
>ENDIF

Normally, you disable an item by single backlash on the left of the item string.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform