Page 1 of 1

[PB 4.40 Beta 2 x86 / WinXP] OffsetOf and Syntax-Error

Posted: Wed Aug 19, 2009 2:23 pm
by Leonhard
I become a syntax-error, when I start this scrip.

Why?

Without the []-chars it is possible to run the command.

This I found should be fixed.

Code: Select all

Structure test
	arr.i[2]
EndStructure

Debug OffsetOf(test\arr[0])

Posted: Wed Aug 19, 2009 5:06 pm
by mk-soft
OffsetOf var [index] was not available ever. Show older version of PB
This works

Code: Select all

Structure test
   arr.i[2]
EndStructure

Debug OffsetOf(test\arr)