Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LISTBOX - identical values in 1st column (second time)
Message
 
 
To
06/03/2008 10:33:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01299292
Message ID:
01299318
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform