I have the Stack ID ( tStackID ) and have opened the stack in LC but the following statements do not work
Code: Select all
if there is a stack ID tStackID then.........
Code: Select all
put the name of stack ID tStackID into tStackName
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
if there is a stack ID tStackID then.........
Code: Select all
put the name of stack ID tStackID into tStackName
Code: Select all
...
if the mode of stack id tStackID = 0 then
## stack is closed
else
## stack is OPEN, check the other 12 possible MODES in the dictionary
end if
...
Code: Select all
if "MyStack" is among the lines of openStacks() then...
Well, erm..., yes.FourthWorld wrote: ↑Thu Jun 28, 2018 4:34 pmThe openStacks function will return a list of open staxks, e.g.:Code: Select all
if "MyStack" is among the lines of openStacks() then...
Code: Select all
on mouseDown
put the mainstacks into tListmainStacks
put tListmainStacks into tStacksList
if the highlited of btn "FilterOnOff" is true
then
filter tStacksList without "com.*"
filter tStacksList without "rev*"
end if
set the text of btn "SelectAStack" to tStacksList
end mouseDown
on menuPick pItemName
if pItemName is empty
then
exit menuPick
end if
put pItemName into tStackName
if there is a stack tStackName
then
Put the ID of stack tStackName into tStackID
Put the title of stack tStackName into tStackTitle
else
answer "Stack does not exists ?!"
exit menuPick
end if
Put tStackID into fld "StackID"
Put tStackName into fld "StackName"
Put tStackTitle into fld "StackTitle"
end menuPick