Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting first item in combo box based on array
Message
From
16/08/2000 18:39:01
Ronald Suen
Epic Solutions Inc.
Edmonton, Alberta, Canada
 
 
To
16/08/2000 16:50:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405816
Message ID:
00405870
Views:
15
Try adding the following after the requery:

.ListIndex = 1

Hope this helps.

>What do I have to add to this code to always have the first array element selected and visible in my combo box?
>
>WITH THISFORM.cboTables
> .ROWSOURCETYPE = 5
> .ROWSOURCE = 'THISFORM.aTables'
> .FIRSTELEMENT = 1
> .REQUERY()
>ENDWITH
Ronald Suen
Epic Information Solutions Inc.
Ph: (780) 488-4418
Fax: (780) 488-0402
Previous
Reply
Map
View

Click here to load this message in the networking platform