It would be good to nuance the "not a structure" compiler error:
Code: Select all
Structure _struc
int.i
EndStructure
s = _struc ; *s = @_struc?
Debug _struc ; 0.
Debug s ; 0.
*buffer._struc = AllocateStructure(s) ; ERROR.
Code: Select all
Structure _struc
int.i
EndStructure
s = _struc ; *s = @_struc?
Debug _struc ; 0.
Debug s ; 0.
*buffer._struc = AllocateStructure(s) ; ERROR.
Code: Select all
s = _struc
Oh la la la Joubarbe...Joubarbe wrote:Following this thread: viewtopic.php?f=13&t=76294
It would be good to nuance the "not a structure" compiler error:
Code: Select all
Structure _struc int.i EndStructure s = _struc ; *s = @_struc? Debug _struc ; 0. Debug s ; 0. *buffer._struc = AllocateStructure(s) ; ERROR.
Did try to have an equivalent name for _struc?s = _struc
Code: Select all
Structure udtData1
Size.i
Type.i
String.s
; ...
EndStructure
Structure udtData1
Size.i
Type.i
iVal1.i
iVal2.i
; ...
EndStructure