Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LISTBOX - identical values in 1st column (second time)
Message
 
 
À
06/03/2008 10:33:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01299292
Message ID:
01299318
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>(I have a problem so I ask for a help). Don't know. After clicking row I use
>1 and 4 column to construct LOCATE for ... statement, populate 2 grids, and afterwards I just want to return back in row in listbox. When 2 or more are identical I am returnig allways to first one, otherwise is OK. I tried with
>this.Selected(this.listItemID)=.T. in click() or interactivechange() methods but no way.

Ok, I am just speculating here since I don't have VFP to try.

In the form's Init (or listbox Init) try

this.AddProperty('nCurrentIndex',0)

In the code that populates grids, etc. try

this.nCurrentIndex = this.ListIndex (assuming all methods belong to the ListBox).

In the ListBox when event you may try
if this.nCurrentIndex <> 0
   this.ListIndex = this.nCurrentIndex
endif
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform