Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Max length of string type property on a form
Message
De
17/07/2002 10:26:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00679542
Message ID:
00679586
Vues:
22
>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!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform