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
>