Re: Array definition by Olaf
Olaf
Wed Apr 11 07:36:01 CDT 2007
> lcinstruct = Thisform.lcinstruct that is throwing an error Objects
> cannot be assigned to arrays (Error 1942) intermittently on seemingly
So it seems, lcinstruct is an array at that time.
if type("lcinstruct",1)="A"
set step on
endif
lcinstruct = Thisform.lcinstruct
Do you declare lcinstruct by
LOCAL lcinstruct?
It may be a variable with private scope
being defined outside of your code.
You may set a conditional breakpoint
with the condition type("lcinstruct",1)="A"
and thereby find out, when that array
is created.
The error is a bit misleading, as you can
store objects in array elements:
DIMENSION la(2)
la(2)=CREATEOBJECT("custom")
? la(2).name
*But what fails is:
la=CREATEOBJECT("custom")
Bye, Olaf.