ca055@unocss.UUCP (David B. Caplinger) (01/09/88)
Here's a problem I ran into the other day while I was writing a button script to search through other button scripts: go to card 1 repeat with b = 1 to the number of buttons if the name of button b contains appName then put the script of button b into tempbuf repeat with l = 1 to the number of lines in tempbuf if line l of tempbuf contains "open" then put the length of line l of tempbuf into lastchar repeat with c = lastchar down to 1 if char c of line l of tempbuf is quote then ... _____ ^ This won't work. (And yes, it /does/ find a " in the line...) The only way I could make it work was: if charToNum(char c of line l of tempbuf) = 34 then ... Now, it works, but it's not "easy to read" like HyperTalk should be... (Not that the rest of that code is necessarily "easy to read" or "good style" :-) What's the real difference between put "Hello" && quote && ... (etc) and put "Hello" && numToChar(34) && ... (etc) ? Perhaps there's a sensible explanation for this "problem"? -/ Dave Capligner /- ihnp4!unocss!ca055 ------------------------/ Lonely is as lonely does; lonely is an eyesore /---