Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Problem
Message
De
22/10/1999 16:45:45
 
 
À
22/10/1999 14:08:21
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00280179
Message ID:
00280253
Vues:
11
I believe the name of the array specified as the RowSource must be surrounded in quotation marks. I'm not sure if in this case it is "this.aList",".aList" or just "aList". I suggest you try all three to see if one of them works.
Good Luck.

>Good Afternoon Everyone -
>
>i'm fairly new to vfp so bear with me.
>
>i'm working with some comboboxes and using certain values from each to perform mathematical functions in the interactivechange event.
>
>i've set an array in the init event of one of the combos. this is the code for that.
>
>This.AddProperty('aList[1]')
>Dimension This.aList[5,3]
>with This
> .aList[1,1] = "2x4"
> .aList[1,2] = 192
> .aList[1,3] = .667
> .aList[2,1] = "2x6"
> .aList[2,2] = 128
> .aList[2,3] = 1
> .aList[3,1] = "2x8"
> .aList[3,2] = 96
> .aList[3,3] = 1.33
> .aList[4,1] = "2x10"
> .aList[4,2] = 80
> .aList[4,3] = 1.67
> .aList[5,1] = "2x12"
> .aList[5,2] = 64
> .aList[5,3] = 2
> .RowSourceType = 5
> .RowSource = .aList
> .ColumnCount = 3
> .ColumnWidths = "50,0,0"
>endwith
>
>when i attempt to run the form, i get an error that 'ListItemID' not found. the following is the code in the interactivechange that i'm using to reference the array. c21 is the name of the combo with the array.
>
>lnCol2Value = ThisForm.c21.aList(ListItemID, 2)
>lnCol3Value = ThisForm.c21.aList(ListItemID, 3)
>
>can anyone tell me what i'm doing wrong?
>
>thanks
>JD
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform