Return value for @FileExport?

I want to put a validation at the FileExport dialogbox. If user press “YES”, the text will be exported and an agent will run. But if user press “CANCEL”, nothing will be executed.

Below is my code:

@If(@Command([FileExport];“Lotus 1-2-3”; file_name) =0;

@Command([RunAgent];“status_export”);

@Return(“”));

Currently, what I am getting is, either I press OK or CANCEL, system will still export and run the agent.

Appreciate if someone can help.

thanks.

Subject: Return value for @FileExport?

AFAIK I don’t think there is any way to tell if OK or Cancel has been pressed in a FileExport dialog, both will return 1 as no errors have been generated during the dialog.

I suspect the best you can do is to add some code to the status_export agent to check for the successful export of the file.

HTH - Rufus.