From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I wonderhow can I makeanerror controlfor the software, becausein my softwarehas abutton called"Save Image"and when the userclicks on it,opensawindow forthe user toselect wherehe wants to savethe imagebutthe windowhas twobuttons:"Save"and "Cancel".Ifthe user clicks thecancel buttonappearsanerror message.
How do I makethe userclick"Cancel" and the softwareto function normallyagainwithout havingtocancel andre-initiation
Use an explicit file dialog to get the file name from the user (set default name, pattern, browse option, etc appropriate for the image) and look for the "canceled" terminal or error output. If the users cancels the dialog, you will get a TRUE for the canceled boolean and an error at "error out".
Now use a case structure to skip reading the file if the dialog gets cancelled.