Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page height Property Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00802415
Message ID:
00802776
Views:
11
>Hi Fred
>
>I am not confused about the object. The issue only occurs if you first create a page sub-class with the class designer. Then when you create an instance of the page subclass the PEMStatus(loPage,"Height",5) returns True.
>
>If you open the vcx file you can also see the height propery their although it does not show in the property sheet.

OK, I didn't see it in IntelliSense, and I swear that yesterday PEMSTATUS() didn't see it, either! But it is most certainly in the .VCX.

I'm pretty sure the only reason it's there is for the Class Designer to use it, as a Page inherits it's height from available space in the PageFrame. In any case, you probably shouldn't have added a custom property with the same name as a reserved word, even if that word wasn't normally used for your class. As you can see, it's causing you grief. You'll be better off in the long run to change your code. Now you'll see another good reason not to use a reserved word as it will be difficult to even FIND just your references, even with the Code References tool. What seemed like a "good idea at the time" usually comes back to bite you.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform