Re: [IDE] rename controls?
- Posted by Judith Evans <camping at txcyber.com> Feb 13, 2003
- 431 views
Judith, I have the old and new name when the name is changed. The problem occurs when the old name is part of another control's name. Example: user changes PushButton2 to ExitButton. There is also a control PushButton21. PushButton21 sometimes gets changed when it should not. I convert correctly within setHandler events for the changed name. It may be wrong when the name is within a procedure for another control or in the generic events such as (General). I think I just need to do a little more work with my first attempt to change the name and check the next position of the compared to name. Maybe I can get this in as a last minute addition to the next release after all. Dan wrote: Yeah, I figured it probably wouldn't be easy to do. Here's a suggestion that's not as good as "auto-change", but might be better than nothing if it would work: make a right-click pop-up menu choice (Change Control Name?), that would ask for a newname for the control that was right-clicked on; that way, you'd have both the old control name & the new one available, so you could search through all the events for the old one & replace it with the new one. Might not be so easy, though, to find any references to the control *inside* procedures. Dan