Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox behavior - not responding
Message
From
09/06/2018 11:20:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Listbox behavior - not responding
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01660652
Message ID:
01660652
Views:
92
Hi,

I have a form on which I create a LIstbox - Fill the data with following code:
Select curList
	With Thisform.ggListbox
		.RowSource = m.lcSQL
		.RowSourceType = 3
		.Requery()
		.ListIndex = 1
		.Visible = .T.
		.SetFocus()
	ENDWITH
It shows the listbox with all the content correctly, however I cant do anything with it. Click on any Item, it does not respond.

So for testing I had added a combobox with following code
With Thisform.ggListbox
		.RowSource = m.lcSQL
		.RowSourceType = 3
		.Requery()
		.ListIndex = 1
		.Visible = .T.
		.SetFocus()
	ENDWITH
	**FOR testing purpose I had added a combo gglCombo1
	With Thisform.gglcombo1
		.RowSource = m.lcSQL
		.RowSourceType = 3
		.Requery()
		.ListIndex = 1
		.Visible = .T.
		.SetFocus()
	Endwith
And the combo 'works' viz I can select a.s.o.
What should I change to my code so that the Listbox will also allow an item to be selected?

Regards,
Koen
Next
Reply
Map
View

Click here to load this message in the networking platform