Code: Alles auswählen
LineXY(n()\x, n()\y, n()\parent\x, n()\parent\y)
Code: Alles auswählen
LineXY(n()\x, n()\y, n()\parent\x, n()\parent\y)
Code: Alles auswählen
;Debug "Values from parent (last Element)"
;Debug n()\parent\x
;Debug n()\parent\y
Code: Alles auswählen
ChangeCurrentElement(n(), n()\parent)
Debug "Values from parent (last Element)"
Debug n()\x
Debug n()\y
Debug n()\parent
Code: Alles auswählen
Structure Node
x.l
y.l
*parent
EndStructure
Global NewList n.node()
Procedure NewNode(x,y,*parent.node)
AddElement(n())
n()\x = x
n()\y = y
n()\parent = *parent
EndProcedure
NewNode(10, 5, 0)
NewNode(20,10,n())
FirstElement(n())
Debug "First Element: "
Debug n()
Debug n()\x
Debug n()\y
Debug n()\parent
LastElement(n())
Debug "Last Element: "
Debug n()
Debug n()\x
Debug n()\y
Debug n()\parent
ChangeCurrentElement(n(), n()\parent)
Debug "Values from parent (last Element)"
Debug n()\x
Debug n()\y
Debug n()\parent
Code: Alles auswählen
Structure Node
x.l
y.l
*parent.Node ;Das .Node ist wichtig!
EndStructure
Global NewList n.node()
Procedure NewNode(x, y, *parent.Node)
If AddElement(n())
n()\x = x
n()\y = y
n()\parent = *parent
EndIf
EndProcedure
NewNode(10, 5, 0)
NewNode(20, 10, n())
FirstElement(n())
Debug "First Element: "
Debug n()
Debug n()\x
Debug n()\y
Debug n()\parent
LastElement(n())
Debug "Last Element: "
Debug n()
Debug n()\x
Debug n()\y
Debug n()\parent
Debug "Values from parent (last Element)"
Debug n()\parent
Debug n()\parent\x
Debug n()\parent\y
Debug n()\parent\parent