Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GOTO TOP in ComboBox
Message
 
To
14/09/2005 08:51:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01049365
Message ID:
01049371
Views:
16
this.ListIndex = 1

BTW what object is THIS.? Combo itself or something else?


>I have a combobox in a grid, Its loaded dynamically from an array.
>
>The array has 3 columns, description,code and sort order.
>After I load the array I use ASORT() to place the items in the desired order.
>
>So far so good!
>
>When the user adds a new line to the grid (IE. combobox has no selected value yet) Users want the combobox to display first item in the drop down. Currently it seems to go to the first item that was added to the array, even if that is now the last item, middle or whatever.
>
>I've tried using ;
>
>This.Value=THIS.aItems[1,2]
>This.ItemIndex=1
>This.ListItemId=1
>
>Each causes a C00005 error !
>
>Any ideas how I can achieve this?
>
>
>Gary.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform