Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GOTO TOP in ComboBox
Message
 
À
14/09/2005 08:51:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01049365
Message ID:
01049371
Vues:
15
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform