Now how does that new (HW4.5) NIL thing work in layers in practice.
For if i do:
Code: Select all
newlayerid=Circle(stuff)
setlayername(newlayerid, "mylayername")
but if i then add third line of:
Code: Select all
makebutton(NIL, #LAYERBUTTON, newlayerid...)
When i check with debugprint, it gives me answer to newlayerid as being "NIL"
So how can it anyway set that serlayername correctly to correct layerid with that NIL, but not work on makebutton?
Of course there was no problem in practice since i simply referred third argument as "mylayername" and fixed the problem, but just in case i need it at some other point, it would help to understand how this works.
For i thought it would return some number for newlayerid, depending on what numbered ID is next one free instead of NIL.