okay, I think this is correct for both versions (gah)
function baseID newID
if newID is empty then
if not exists (the baseID of this stack) then
set the baseID of this stack to "this card"
end if
else
if exists(newID) or \
newID is among the items of "this card,card list,background
list,stack list" then
set the baseID of this stack to newID
else
set the baseID of this stack to "this card"
end if
end if
return the baseID of this stack
end baseID
function baseID newID
if (newID is not empty and not exists(newID)) or \
(newID is empty and not exists(the baseID of this stack)) then \
set the baseID of this stack to "this card"
if exists(newID) or \
newID is among the items of "this card,card list,background
list,stack list" then \
set the baseID of this stack to newID
return the baseID of this stack
end baseID
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode