Re: selected
Posted: Fri Jul 25, 2014 3:29 pm
Hi Rob,
in your script you do not empty the variable tNameList when neccessary!
That's why only the recept from the FIRST card of stack "recepten" will ever get found!
Change this:
Tested and works, although your stack keeps crashing my livecode very often!?
Best
Klaus
in your script you do not empty the variable tNameList when neccessary!
That's why only the recept from the FIRST card of stack "recepten" will ever get found!
Change this:
Code: Select all
...
repeat with i = 1 to tRnumber
repeat with b = 1 to tBtnNumbers
put line b of tOrgList into tBtnName
if the hilite of button tBtnName of cd i of stack "recepten" = true then
put tBtnName & cr after tNameList
end if
end repeat
delete char -1 of tNameList
if tNameList=tOrgList then
put fld "titel" of card i of stack "recepten" & cr after tTempfield
end if
## Need to put this outside of the IF THEN condition or its content will NEVER fit!
put empty into tNamelist
## !!!!!
end repeat
...Best
Klaus