Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing name of objects --- .SCX table
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01152942
Message ID:
01152989
Views:
25
You didn't post your code. Anyway, why would you rename page4 into page8? I can understand a reason for renaming into something meaningful, such as pgPatientInfo, for example... But I can not get why would you rename one page into another? May be to make a maintenance harder for your colleagues? <g>

Or was it just an example to show the problem?

>Hi,
>
>
>I've developed some code to open the SCX files and "pick" up all the lines with the CAPTION property, because i need to add it to a table (with a field for the path of the object and another field to the caption).
>
>Everything works fine until I found something I've never imagine:
>
>- One of my forms has 1 pageframe with 5 pages.
>- The page4 has been renamed to page8.
>
>So, what is kept on the SCX file is:
>
>
>pgf1.page4.Caption = "My new caption"
>pgf1.page4.Name = "page8"
>
>
>As you can see, my code will add (to my table) a reference to page4, that it doesn't exist...
>
>
>Any ideas how to work around?
>
>
>Best regards,
>
>
>Ricardo Almeida
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform