Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max length of string type property on a form
Message
From
17/07/2002 10:26:20
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00679542
Message ID:
00679586
Views:
24
>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?
>Thanks
test = CreateObject('form')
test.AddProperty('test')
test.Visible = .t.
test.test = Replicate('test', 100)+Replicate('boom', 10)
?test.test
?Len(test.test)
This one works fine under VFP7SP1
Version()="Visual FoxPro 07.00.0000.9465 for Windows"

(btw. I have a tip for fast getting the above version text:
_CLIPTEXT=Version()
after that just paste here :)

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform