{"identifier":40224,"topic":"Commands","name":"import paint","text":"<code>import paint from file <i>fileName<\/i><\/code> <br><br>\n\n The<code> import paint <\/code>command loads a Paint image to the current card from a file.<code> Import paint <\/code>only works when one of the Paint tools is chosen. <br><br>\n\n This command has the same effect as the Import Paint menu item that appears in the File menu (when a Paint tool is chosen), except that it avoids the dialog box that prompts the user for a file name. <br>\n<br>\nIf<code> import paint <\/code>succeeds, HyperCard sets the function<code> the result <\/code>to<code> empty<\/code>; if the command fails (if, for example, you use<code> import paint <\/code>when the Browse tool is chosen), HyperCard sets<code> the result <\/code>to<code> \"Couldn't import paint.\"<\/code> <br>\n","related":{"36906":"export paint"},"examples":"import paint from file \"Sue\u2019s Screen Dump\"\n\nanswer file \"Import paint from what file:\" of type paint\nif it is not empty then import paint from file it","demo":"","debug":{"9":["import paint from fi"],"10":["If import paint succ"]}}