Difference between revisions of "RETRY"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Retry a command after an error was encountered | Retry a command after an error was encountered | ||
− | |||
==Syntax== | ==Syntax== | ||
RETRY | RETRY | ||
− | |||
==See Also== | ==See Also== | ||
[[ERROR()]], [[ERRNO()]], [[MESSAGE()]], [[ON ERROR]], [[RETURN]] | [[ERROR()]], [[ERRNO()]], [[MESSAGE()]], [[ON ERROR]], [[RETURN]] | ||
− | |||
==Description== | ==Description== | ||
The RETRY command re-executes a command that was reported as being in error. It is used in conjunction with the ON ERROR command. | The RETRY command re-executes a command that was reported as being in error. It is used in conjunction with the ON ERROR command. | ||
− | |||
==Example== | ==Example== | ||
Line 31: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Error Handling and Debugging]] | [[Category:Error Handling and Debugging]] | ||
[[Category:Error Handling and Debugging Commands]] | [[Category:Error Handling and Debugging Commands]] |
Revision as of 07:09, 12 December 2012
Contents
Purpose
Retry a command after an error was encountered
Syntax
RETRY
See Also
ERROR(), ERRNO(), MESSAGE(), ON ERROR, RETURN
Description
The RETRY command re-executes a command that was reported as being in error. It is used in conjunction with the ON ERROR command.
Example
procedure file_open if error() = 15 .and. errno() = 11 dialog message message()+ ". Retry?" if lastkey() = asc("Y") retry endif endif return on error do file_open use accounts exclusive on error