Announcement

Collapse
No announcement yet.

Scripting question

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

    Scripting question

    Bob:

    I am trying to put CallerID data into variables and getting error messages.

    What is wrong with this statement?

    Dim strNum As String = hs.PluginFunction("BLNetCallerId", "", "LastCallerNumber", Nothing))

    Running it generates this error

    Compiling script CID_Processing.vb: End of statement expected.
    Mar-18 2:21:17 PM Error Compiling script CID_Processing.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

    Oddly this works

    hs.PluginFunction("BLNetCallerId", "", "AnnounceCurrentCaller", Nothing)

    Any suggestions?

    Also, would it be possible to use the device ref number in the next build instead of x10 code for the last caller device? Can't figure how to reference it in the options page.

    Thanks;

    Don
    Don

    #2
    You have an extra bracket at the end
    Try this:

    Code:
    Dim strNum As String = hs.PluginFunction("BLNetCallerId", "", "LastCallerNumber", Nothing)
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Sh#t! I totally missed that.

      Thanks.
      Don

      Comment

      Working...
      X