Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown event in Dropdown combo
Message
From
30/10/2003 15:47:04
 
 
To
30/10/2003 06:51:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00844391
Message ID:
00844714
Views:
29
>Are you talking about the number of items displayed in the list portion of the control? If so, check out the control's DisplayCount property.

I've set this property in the dropdown event. No luck. Also presetting the property to say 5 doesn't help either. The list box simply comes up as a single row with an arrow head in it. :-(
Here's my dropdown code, FWIW.
if m.isCon1
	isCon1=.f.
	local i, cc
	select CName, Connum, CPrimary ;
		from cons ;
		where CCust = Names.cust ;
		and ! Inactive ;
		order by 1 ;
		into array a_cons
	cc= _tally

	with this
		.clear
		for i = 1 to m.cc
			.addlistitem(a_cons[m.i,1])
		endfor

		* select current contact
		.value= max(ALOOK(@a_cons, cons.Connum, 2),1)
		.displaycount=min(10,.listcount)
	endwith
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform