Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a property at runtime
Message
From
12/11/2004 17:32:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Changing a property at runtime
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00961048
Message ID:
00961048
Views:
46
Hi:

I need to change the Name of a commandbutton into a container at runtime. Pretty straightforward

I made a form, add a Container into it, then a commandbutton into the Container and run a
Thisform.Container1.Command1.Name = "cmdNewName"
. Works fine.

However, if the Container with a commandbutton is a class and I add this class into the form, running the same piece of code
Thisform.Container1.Command1.Name = "cmdNewName"
causes the error : "'Name' is a Read Only property".

Can you explain me why is that? How can I help it?

It's necesary for me to change the Name of the comandbutton
Next
Reply
Map
View

Click here to load this message in the networking platform