3 Replies Latest reply on Oct 15, 2009 4:05 PM by Sean_Wilson

    VB to director convert VBScriptXtra Help

    1210s

      I am using VBScriptXtra in director and hoped someone would be able to help me with something.

       

      I am struggling trying to translate this line into lingo:

       

       

      cTapi1.LineOpen(LINECALLPRIVILEGE_OWNER _

          , LINEMEDIAMODE_DATAMODEM)

       

      I have tried

       

      sprite(2).lineopen = string("LINECALLPRIVILEGE OWNER", "LINEMEDIAMODE DATAMODEM")

      sprite(2).lineopen(sprite(2).CallPrivilege("OWNER"),sprite(2).MediaMode("DATAMODEM"))

       

       

      this is from the help:

       

      LineOpen - Public (Return Datatype: Long)


      Description: Open the line to receive new calls.
      Return: Zero if success, or an error number describe the error

      Optional

      ByVal/ByRef

      Variable

      Datatype

      ByVal

      CallPrivilege

      LINECALLPRIVILEGE

      ByVal

      MediaMode

      LINEMEDIAMODE

       

       

      I really hope someone can help I am desperate with this.

       

      Thanks

       

      lance