Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic comboboxes in grid
Message
From
30/01/2002 04:39:00
 
 
To
29/01/2002 14:09:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00612341
Message ID:
00612636
Views:
24
Vlad,

try this
select table
local oName
scan
with this.column2
      oName = ([cmbFl]+alltr(str(table.key))
     .addobject( oName, [cmbFlags])
     .oName.Visible = .t.      && make it visible
endwith
endscan
>Hello All,
>
>I have the problem which makes me feel stupid. I have a grid where I want to add several combobxes into one column at startup basing on table content and then switch between them via dynamiccurrentcontrol property. In the grid's init() I have the following code:
>
>select table
>scan
>with this.column2
> .addobject([cmbFl]+alltr(str(table.key)),[cmbFlags])
>endwith
>endscan
>
>then grid has the dynamiccurrentcontrol="this.mRefreshcontrol"
>
>mRefreshcontrol method is:
>return [cmbFl]+alltr(str(table.key))
>
>when I run this grid then instead of comboboxes I see the grey space. If I add these comboboxes in Class designer then everthing works fine.
>
>What I'm doing wrong?
>
>TIA
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform