Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Q: read-only property, the shortest implementation?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00927230
Message ID:
00927510
Views:
22
I'm working on set of GDI+ classes. The Image class among others contains Width and Height properties. A possible way of instantiating the Image object is by an image file. For example:
img = CreateObject("gdiplus_image", "c:\windows\forest.bmp")
A protected method loads the image and retrieves its width and height into corresponding properties.

I want these values to be available not through methods, like GetWidth and GetHeight, but through properties. They should be visible in FoxPro debugger, for example.

As well these properties should be read-only for an object instantiated from this class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform