>LOCAL lcPanelName, loNewPanel > >With Thisform > .nMixPanelNo = .nMixPanelNo + 1 > .Height = .Height + 62 && Add enough room for another calc panel > .nPanelTop = .nPanelTop + 62 > lcPanelName = "cntMixAP" + ALLTRIM( STR( .nMixPanelNo)) >*TPMcD* loNewPanel = CREATEOBJECT( "mclCntMixAP") >*TPMcD* With loNewPanel >*TPMcD* .Left = Thisform.nPanelLeft >*TPMcD* .Top = Thisform.nPanelTop >*TPMcD* .Visible = .T. >*TPMcD* Endwith > .AddObject( lcPanelName, "mclCntMixAP") > .Refresh() oTemp = eval("thisform."+lcPanelName) oTemp.Visible = .t. >Endwith >>As it stands, I get:
"lcPanelName is not an object"
>when I runlcPanelName.Visible = .T.
as is to be expected