Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change a bunch of baseclasses to a new class?
Message
From
05/10/2005 05:58:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Change a bunch of baseclasses to a new class?
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01056173
Message ID:
01056173
Views:
60
Writing a wee multiplication tables app. for my daughter at home.

I have a container with 100 buttons, arranged 10 X 10. I just used the button base class, stupidly, cos later I realised that each button would be calling the same form method. So I'd like to add a method to a button and make it a class. Trouble is, it took ages to arrange the buttons' positions, size, etc., and I don't want to have to do it all again with the new class.

So I was wondering if there was a way to convert all the buttons to the class, without disturbing them all. As you know, the BaseClass prop of an object is written in stone.

No biggie - I can always build a new container - just wondering if I could avoid it.

'ppreciate it

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Next
Reply
Map
View

Click here to load this message in the networking platform