Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox sorted - two Columns
Message
From
23/09/2009 09:18:21
 
 
To
22/09/2009 18:54:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01425627
Message ID:
01425722
Views:
54
>Simply do the sorting in source. ie:
>
>
with thisform.myListBox
>  .RowSourceType = 3
>  .RowSource = "Select Country, Company, Cust_id"+;
>                        " from customer"+;
>                        " order by Country, Company"+;
>                        " into cursor crsCustomer"
>  .ColumnCount = 2
>  .ColumnWidths = '100,100'
>endwith
>Get the selected value from any column using crsCustomer.< fieldName >
>Cetin

I decided to use this solution

Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform