[02 Oct 2011] GetLayerStyle with #LINE

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[02 Oct 2011] GetLayerStyle with #LINE

Post 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!
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[03 Oct 2011] Re: GetLayerStyle with #LINE

Post 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.
Locked