Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display array in grid.
Message
From
14/04/1999 02:37:30
 
 
To
14/04/1999 01:24:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00208077
Message ID:
00208100
Views:
23
>>Hi all experts, I have a grid for inputting data, there is a combo box in the first column.
>>
>>grid.column.combo.RowSourceType = 5-array
>>grid.column.combo.RowSource = gaTemp
>>
>>The array gaTemp is a 2-dimensional array. I wanna know how to display gaTemp(selected by combo,2) in the 2nd column of the grid? I've tried to change the column.ControlSource, but I'm fail to display anything. :-(
>>
>>Thanks in advance!!
>>
>>Rosanna
>Rosanna,
>You could use array that way but it would still assign a controlsource. If it's after the last column in grid it would do a ring and use field(1) as controlsource.
>If your problem is not controlsource then check that if column.currentcontrol is set to combo and play with sparse setting to see the difference.
>Cetin

Cetin,

Thanks, but my problem is still here.

Let me explain my problem clearly. The gaTemp(5,2) contains:

gaTemp(1,1) 'Code1'
gaTemp(1,2) 'Code1 description'
gaTemp(2,1) 'Code2'
gaTemp(2,2) 'Code2 description'
..... etc

What the problem is, when I select 'Code2' in the comboBox, it is okay to display 'Code2' in 1st column, but I wanna display 'Code2 description' in 2nd column. Is it possible to do that?

Rosanna
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform