Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown event in Dropdown combo
Message
De
30/10/2003 15:47:04
 
 
À
30/10/2003 06:51:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00844391
Message ID:
00844714
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform