Paasing a structure to a function
Posted: Sun May 25, 2003 9:40 pm
Hi everyone - I have this following piece of code
Both of the procedures wont work, the first give me the error : Syntax error
and the second gives me the error: This variable doesnt have a 'structure'
Could somebody explain how to pass a structure to a function properly.
Code: Select all
Structure mystruct
anitem.l
endstructure
procedure dosomething1 ( temp.mystruct )
endprocedure
procedure dosomething2 ( *temp.mustruct )
temp\anitem = temp\anitem + 1
endprocedure
and the second gives me the error: This variable doesnt have a 'structure'
Could somebody explain how to pass a structure to a function properly.