>The extra parentheses is needed in the property declaration section of a define class so that the property doesn't get set to the literal (e.g. "space(0)"). If in the property sheet, you type =space(0), (space(0)) is actually what gets ssaved in the SCX/VCX.
Really? I have a define class with
task = space(50)
, when the object is instantiated I can look in the debugger and it shows the property value as a string of 50 spaces.
>If working with VFP only, then you don't need really to worry about it. However, if passing information to some other environment, for example the WinAPI, you need to allocate the memory for a string yourself so you need to pass as much information as can possibly fit into it. If you don't make the string big enough, usually the DLL will throw an error or at the minimum return an error code.
OIC, good point.
>Even after 13 years doing this, I am still not a touch typist (as some of my friends are). I still "hunt and peck" albeit a bit faster. I HATE TO TYPE! < bg >
Hehe. My mother forced me to take typing in high school. Which I didn't want to. Why would a future multi-millonaire Rock-n-Roll Star need to know how to type. <g>
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!