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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

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

Post 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])
User avatar
mk-soft
Always Here
Always Here
Posts: 6207
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Post 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)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply