Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having Problems with Combo Array
Message
De
26/08/1998 12:49:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/08/1998 12:31:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00130128
Message ID:
00130152
Vues:
20
>>>Here's my problem, I have a Combobox class with record type Array(5), and the source is 'this.aitems' which points to the combo propery 'aitems[1,0]'
>>>
>>>For some reason I can't get it to work right. I want it to list the files in the current dir so I used from the command window while the form is runnuing:
>>>
>>>=ADIR(FORM1.CB1.AITEMS)
>>>
>>>that didn't work, it only shows the first file so I tried
>>>
>>>DIMENSION FORM1.CB1.AITEMS(ADIR(FORM1.CB1.AITEMS))
>>>
>>>thinking it would create the array properly then return the number of files to the dimension of the array, but I only get the first record.
>>>
>>>I've confused my self once again. Thanks for any help.
>>Mike,
>>Adjust the numberofelements. thisform.mycombo.numberofelements = =ADIR(thisform.CB1.AITEMS)Cetin
> That works but it only with 1=. Thanks a load.
I couldn't understand what you mean. It would work with any number of elements.
DEFINE CLASS cmbdir AS combobox
	RowSourceType = 5
	RowSource = "this.aitems"
	Height = 24
	Width = 100
	Name = "cmbdir"
	DIMENSION aitems[1]

	PROCEDURE Init
		this.numberofelements=adir(this.aitems)
		this.columncount=alen(this.aitems,2)
		lcCw=replicate("100,",alen(this.aitems,2))
		this.columnwidths = left(lcCw,len(lcCw)-1)
	ENDPROC
ENDDEFINE
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform