| Prev | Next | App Verbs > app.getErrorString |
app.getErrorString
| Syntax |
app.getErrorString ()
|
| Params |
None.
|
| Action |
Gets the text of the last error message generated by the application.
|
| Returns |
Returns the error string, the result of the last error-prone operation. It's empty if the operation was successful.
|
| Examples |
app.start ("MinApp"); app.newWindow ("Untitled"); app.getErrorString () » "Out of Memory." // non-empty string - the operation failed
app.start ("MinApp"); app.saveWindow ("Work"); app.getErrorString ()
|
| Platform Notes |
This verb is only implemented in the Mac OS version of Frontier.
|
| Notes |
This verb is useful if you've turned alerts off using the enableDialogs verb. Call this verb if a save or open returns false, for example. The string can be displayed in a call to the Frontier scriptError verb or displayed using the msg verb.
|
| See Also |
app.enableDialogs
|
| Prev | Next | App Verbs > app.getErrorString |