Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Christof's struct.vcx and determing paper sizes in NT
Message
From
24/02/2003 16:07:02
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00757118
Message ID:
00757222
Views:
9
That did it of course.
Thanks again Sergey!
Tracy

>Tracy,
>
> The check if variable is an array implemented in struct.vcx works relaibly for variables but may fail for object properties. You can change following line in "structmember" class Init method
***.lIsArray = Type("m.toStruct." + .cProperty + "[1]") != 'U'
>*** To
>	.lIsArray = Type("ALEN(m.toStruct." + .cProperty + ")") = 'N'
>
I didn't test it but you get an idea.
>BTW, Flags is reserved word in VFP8.
>
>
>>VFP8 Windows 2000 SP3. I receive the error 'Flags is not an array' when I run the code below. It bombs out at the following:
>>
>>If .lIsArray
>> lnEls = ALen(m.toStruct.&lcProperty) && on this line it bombs
>>
>>Does anyone know what is going wrong?
>>
>>This works correctly in VFP7.
>>
><snip>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform