common code patterns
Dan Friedman
dan at clearvisiontech.com
Fri Aug 11 22:27:07 EDT 2017
Here’s my silly contribution. How many times do we write something like this:
put “Are you sure you want to delete the image” && quote & myImageName & quote && “?” into tPrompt
I have a simple q() function in all my projects:
function q inData
return (quote & inData & quote)
end q
Now, I can simply do this:
put “Are you sure you want to delete the image” && q(myImageName) & “?” into tPrompt
Tiny, but mighty. :)
-Dan
More information about the use-livecode
mailing list