>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