Page 1 of 1

[02 Oct 2011] GetLayerStyle with #LINE

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 02 Oct 2011 23:54:43 -0000

I thought this code should work; but it doesn't.

Code: Select all

EnableLayers()
Line(5, 5, 20, 20, #WHITE, {Name="TestLine"})
t=GetLayerStyle("TestLine")
DebugPrint(t.x1, t.y1)
This code reports the following error: Table field "x1" was not initialized!

[03 Oct 2011] Re: GetLayerStyle with #LINE

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 03 Oct 2011 22:07:03 +0200
I thought this code should work; but it doesn't.

Code: Select all

EnableLayers()
Line(5, 5, 20, 20, #WHITE, {Name="TestLine"})
t=GetLayerStyle("TestLine")
DebugPrint(t.x1, t.y1)
This code reports the following error: Table field "x1" was not initialized!
Oops, yes, x1/y1/x2/y2 are currently not set by GetLayerStyle(). It's fixed now.