Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum class length
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01561935
Message ID:
01561950
Vues:
90
An awesome little bit of code there, Hugo. Thanks. I'd never used some of those "text to" parameters. Nice to know.

BTW, I absolutely loved BC when I drove to Alaska in 2002. Northern BC and Yukon were my favorite parts of that trip, even better than Alaska. I have this beautiful picture of driving into McBride. Deep orange-red sky. Stunning. Another of Devil's Creek on a bridge overpass looking down on the deep rock-face and river. Also stunning.

The only issue I had with any of it were the mosquitoes. Very thick. And I do believe I could see a heart and several internal organs in some of them. :-)


>>Was wondering if anybody knows the maximum legal length for a class name off the top of their head?
>>I'm putting a limit on an app I'm writing to scan classes at 128 characters ... but if there's a real limit, I'd prefer to use it.
>
>254?
>
>
>clear all
>clear
>local i, lcName
>
>for i = 100 to 500
>	lcName = Replicate('x', i)
>	text to lcTest noshow flags 1 pretext 1 + 2 + 4 textmerge
>		local loObject
>		loObject = NewObject('<<lcName>>')
>		? Len('<<lcName>>'), loObject.Name
>		
>		define class <<lcName>> as session
>		enddefine
>	endtext
>	ExecScript(lcTest)
>
>next i
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform