Print to pdf commands

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
russellf
Posts: 17
Joined: Thu Feb 11, 2016 8:34 pm

Print to pdf commands

Post by russellf » Wed Feb 22, 2017 3:10 pm

It's not documented, but I have seen that "the result" of "close printing" and the "print" commands appears to be empty on success, and "printing failed" when I send too much at it. Can I depend on the result from these, as in checking for empty to be a good result? How about "open printing..."? Thanks!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9663
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Print to pdf commands

Post by dunbarx » Wed Feb 22, 2017 3:40 pm

The "result" is always your friend. I berate myself for not checking it far more often than I do; it would have saved a lot of time.

This function (like the "sysError") is explicitly designed to validate commands. If the result is empty, the, er, result of your command or whatever contained no egregious errors. That the dictionary does not always spell out the contents of a failed command, like you mentioned, is just a slight deficiency.

Craig Newman

Post Reply

Return to “Talking LiveCode”