Announcement

Collapse
No announcement yet.

Currently Running Script Variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Currently Running Script Variable

    Hello,

    I am slowly learning about error handling in my scripts, and starting to add Try and Catch statements to each of these whcih makes a big difference. I am wondering though is there is a variable in HS which gives the script that is currently being executed, note this is not all running scripts but the script that is currently in execution (that is being called).

    So for example

    PHP Code:
    Try
    Catch 
    ex As Exception
    hs
    .WriteLog(ScriptBeingRun " *ERROR* ",ex.Message)
    End Try 
    This would be a bit easier so I can then just copy and paste it into each script, and then the ScriptBeingRun automatically has the running script (e.g. TestFileWrite.vb when I am running TestFileWrite.vb)

    Thanks,
    HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

    Facebook | Twitter | Flickr | Google+ | Website | YouTube
Working...
X