Returns the name of the currently executing BDL script with the path and the extension.
Kernel.bdh
GetScriptName( in uOptions : number optional ): string;
The name of the currently executing BDL script.
Parameter | Description |
---|---|
uOptions |
(optional)
|
dclevent handler ErrorHandler <EVENT_RAISE_ERROR> var sTrac : string; sFunc : string; sScript : string; begin sTrac := GetTransactionName(); sFunc := GetFunctionName(); sScript := GetScriptName(); print("error raised in transaction " + sTrac + " in function " + sFunc + " in script " + sScript); throw; end ErrorHandler; dclfunc function f1 begin //WebPageUrl will raise an error WebPageUrl("http://Does.not.exist"); end f1; dcltrans transaction TRaiseError begin f1(); end TRaiseError;
error raised in transaction TRaiseError in function f1 in script c:\tests\ScriptName\ScriptName.bdf