Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems ( B.. ): DropCombo RowSourceType = 1 cut RowSource
Message
De
30/01/2004 06:45:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problems ( B.. ): DropCombo RowSourceType = 1 cut RowSource
Divers
Thread ID:
00872230
Message ID:
00872230
Vues:
66
With RowSourceType = 1, the RowSource is cutted to 255 characters.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN
DEFINE CLASS form1 AS form


	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"


	ADD OBJECT combo1 AS combobox WITH ;
		RowSourceType = 1, ;
		Left = 15, ;
		Top = 44, ;
		Width = 100, ;
		DisplayCount = 40, ;
		Name = "Combo1"


	PROCEDURE combo1.GotFocus
		KEYBOARD '{ALT+DNARROW}'
	ENDPROC


	PROCEDURE combo1.Init
		s = ''
		FOR i=1 TO 100
		 S = m.S + ",Item"+LTRIM(STR(m.i))
		NEXT
		this.RowSource = SUBSTR(m.s,2)
		this.ListIndex = 1
	ENDPROC


ENDDEFINE
Fabio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform