Re: Scripting: User-Defined Functions
Posted: 14 Apr 2015 17:25
Sorry, but it needs a little bit of polish.admin wrote:Agreed!TheQwerty wrote:4) Okay, but I'm not sure OK is really the best action then. If the include file cannot be found I think it's safer to end the script than proceed.
It's okay when the including resource is a script, but when it is a script file we get two dialogs:
(Look at all those empty lines - seems to be CR CR LF CR CR LF?)Dialog 1: XYplorer wrote:---------------------------
XYplorer
---------------------------
Error at include: The system cannot find the path specified.
include 'Test\Libs'
---------------------------
OK
---------------------------
Followed by:
The second dialog is redundant and confusing since its message is false.Dialog 2: XYplorer wrote:---------------------------
XYplorer
---------------------------
Script file '<xyscripts>\Test\Test.xys' does not contain any valid lines.
---------------------------
OK
---------------------------
That second dialog also has two forms:
1) The stepping dialog, if the script file was called via the Load SC or the equivalent Load Script File UDC.
2) An error dialog, if the script file was loaded via Scripting > Load Selected Script File.