Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox code
Message
From
24/10/2008 15:51:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Listbox code
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01357042
Message ID:
01357042
Views:
70
I'm trying to get a ListBox to sort on the 2nd column (TypeDesc), but it just always sorts on the 1st column (TypeCode). What do I need to do?
	WITH .Container1.lstAvailable
		SELECT AvailableServiceTypes
		SCAN FOR ! DELETED()
			.AddItem( TypeCode )
			.List[ .NewIndex, 2 ] = TypeDesc
		ENDSCAN
		.Sorted = .T.
	ENDWITH
Next
Reply
Map
View

Click here to load this message in the networking platform