Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vis Modeler Wizards and Dr. Watson
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00161101
Message ID:
00161372
Views:
24
Problem solved!

Add this to the list of quirks with the Code Generator wizards. Don't use parenthesis or brackets in your property comments. The wizard (for some unknown reason) reads through the comment and decides that you must really want mean you want an Array Property, and dutifully creates a DIMENSION statement with your entire comment in it.

I.e. DIMENSION lSoundBell This boolean identifies whether or not to sound the bell, chr(7)

The manifestation of this is that opening your class will kill VFP. Looking at the property through the CLASS BROWSER only shows lSoundBell. No array brackets.

My new habit is to click on the "View Classcode" button on the CLASS BROWSER for any classes that I CODE GENERATE.

Whew! That one was driving me nuts!

Marty
Marty Smith, CSQE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform