Procedure giving a syntax error
Posted: Wed Jun 19, 2013 11:06 am
Hey,
I'm a little puzzled by a error that I've been getting trying to pass a structure as an argument.
I created the following procedure to read groups of properties about a sprite from a configuration file.
However, when I try to compiler the program, I simply get the error "Syntax Error" with the first line of the procedure highlighted. "BoolPrefs" and "ValPrefs" are valid procedures and "GSprite_ActionData" is a valid structure, all of which are declared before the given procedure.
What am I doing wrong?
I'm a little puzzled by a error that I've been getting trying to pass a structure as an argument.
I created the following procedure to read groups of properties about a sprite from a configuration file.
Code: Select all
Procedure GSprite_ReadGroup(Name.s, GroupData.GSprite_ActionData)
PreferenceGroup(Name)
If BoolPrefs("Used")
GroupData\Frames = ValPrefs("Frames")
GroupData\HasDirections = BoolenPrefs("HasDirections")
If BoolPrefs("Tiled")
GroupData\XTile = ValPrefs("XTile")
GroupData\YTile = ValPrefs("YTile")
EndIf
EndIf
EndProcedure
What am I doing wrong?