Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object name is invalid (Error 1575)
Message
From
09/07/1999 19:07:03
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00239552
Message ID:
00239703
Views:
9
>>FOR EACH loColumn IN This.Columns
>> lcColumnControlName = loColumn.CurrentControl)
>> loColumn.RemoveObject(lcColumnControlName)
>> loColumn.AddObject(lcColumnControlName,"MyControl")
>> STORE .T. TO ("loColumn." + loColumn.CurrentControl + ".Visible")
>>ENDFOR
>
>Rex,
>
>I think the problem is on the STORE line, change it to
>
>
>STORE .T. TO loColumn.CurrentControl.Visible
>
>OR
>
>loColumn.CurrentControl.Visible = .T.

I'm pretty sure this will give you a "Unkown member currentcontrol" or something like that. CurrentControl is a text property.

Rex-
This is a problem with internal VFP timing. For some reason, VFP does not let go of the name immediately after the control has been removed from the grid. I have not seen a good workaround for this, I can only suggest hat you name the control something else, like lcCurrentControl + "1".
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform