Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Problem
Message
From
22/10/1999 14:19:16
 
 
To
22/10/1999 14:11:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00280179
Message ID:
00280184
Views:
15
>>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
>
>I believe it should be THIS.ListItemId




well, i'm not getting any values to choose from in the combo with the array.
any ideas?

Thanks again,
Jd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform