Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing name of objects --- .SCX table
Message
From
12/09/2006 11:29:10
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01152942
Message ID:
01153054
Views:
17
>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?
>

You're going to have to write your code so that when you find a 'caption' property, you also need to look for a 'name' property. If you find it, use the right side of the '=' sign for your table rather than the information attached to the caption.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform