Announcement

Collapse
No announcement yet.

RunScript in a script

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

  • JimSpy
    replied
    Originally posted by Pocster View Post

    Having done lots of assembler and C I find these new(ish) languages lacking. After all the error was incorrect number of parameters to write log - would of thought in 2020 that wouldn't be an issue to flag up.
    Still! - VB.NET it is!

    Once again appreciate your help! - there's tons of good information and help on this forum!
    Java yesterday, Java today, Java forever.

    Leave a comment:


  • Pocster
    replied
    Originally posted by tenholde View Post
    This inability to tell you where an error occurred, and what error, is because of the HS implementation, not the .net compilers.

    tenScripting now supports C# scripting.
    Thanks. I'll take a look at that!

    Leave a comment:


  • tenholde
    replied
    This inability to tell you where an error occurred, and what error, is because of the HS implementation, not the .net compilers.

    tenScripting now supports C# scripting.

    Leave a comment:


  • Uncle Michael
    replied
    Originally posted by Pocster View Post
    . . . I find these new(ish) languages lacking. After all the error was incorrect number of parameters to write log - would of thought in 2020 that wouldn't be an issue to flag up.
    It is my impression that MS expects programming to be done within a utility like Visual Studio so that errors of this type are caught before the compiler stage. (On the other hand, Windows error messages aren't terribly informative either much of the time, so maybe MS just doesn't think informative error messages are very important. )

    Leave a comment:


  • Pocster
    replied
    Originally posted by Uncle Michael View Post
    I agree, the vb.net error messages are often less that helpful. There is a tool called TenScripting, that allows you to write HS scripts in the Visual Studio environment. It provides command auto complete, error highlighting, etc. as you work.
    Having done lots of assembler and C I find these new(ish) languages lacking. After all the error was incorrect number of parameters to write log - would of thought in 2020 that wouldn't be an issue to flag up.
    Still! - VB.NET it is!

    Once again appreciate your help! - there's tons of good information and help on this forum!

    Leave a comment:


  • Uncle Michael
    replied
    I agree, the vb.net error messages are often less that helpful. There is a tool called TenScripting, that allows you to write HS scripts in the Visual Studio environment. It provides command auto complete, error highlighting, etc. as you work.

    Leave a comment:


  • Pocster
    replied
    Originally posted by Uncle Michael View Post
    The WriteLog function takes two string parameters. Try something like, hs.WriteLog( "Test", "Process Porch Screen") to see if that resolves the issue.
    OH %$$%!!! You are correct!!
    I really hate the lack of error reporting that this vb.net gives.

    Much appreciated! There I was checking my parameter passing etc. not looking at the writelog at all!!

    Leave a comment:


  • Uncle Michael
    replied
    The WriteLog function takes two string parameters. Try something like, hs.WriteLog( "Test", "Process Porch Screen") to see if that resolves the issue.

    Leave a comment:


  • Pocster
    started a topic RunScript in a script

    RunScript in a script

    Just can't seem to get this without errors! - complaining "does main exist"?
    I've searched the forum and seen this used before without a problem...


    Calling script has

    hs.RunScript("porch screen.vb",TRUE, FALSE)


    porch screen.vb

    Public sub Main(parms As object)

    hs.WriteLog("Process Porch Screen")

    End sub
Working...
X