Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting choice in drop down list
Message
 
To
05/10/1998 18:42:36
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00143999
Message ID:
00144084
Views:
28
Bruce,

IN the combo's requery put this code;
* Combo Requery
LOCAL lnNewItem
WITH THIS
   lnNewItem = .NewItemId + 1
   SCAN
     IF Active
         .AddListItem(Name,lnNewItem,1)
     ELSE
         .AddListItem("\"+Name,lnNewItem,1)
     ENDIF
     lnNewItem = .NewItemId + 1
    ENDSCAN
ENDWITH
Now set the rowsourcetype to None and the rowsource is blank.

Whenever you need to update the combo call its requery.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform