Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max length of string type property on a form
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00679542
Message ID:
00679624
Views:
23
Chris,

This is a limitation of the way VFP stores the Properties set via the property sheet in a memo field.

The users of your subclass simply have to set the value in code in the Load() or Init():
this.pviews = "view1,view2,view3," + ;
   "view4,view5"
remember that no string constant can be more than 255 characters so they may need to add strings together like above. You can put a comment on the pView property to alert your developers of the size limitation.

>Hi - I am attempting to create a form class for my fellow developers to use. I have created a property on the form called "pViews" and set it to default to "". In subclassed forms I would expect the developer to enter a list of the views they want to open with the form separated by commas. I have got this working OK but the limitation of this is the max 255 characters in the string - having said that - I get a fatal error if there are more than 238 characters in the property... Is there a better way to approach this sort of requirement?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform