Author Topic: TU.SCRITPT.CREATE  (Read 5676 times)

LasVegasSBUser

  • Professional
  • ***
  • Posts: 28
TU.SCRITPT.CREATE
« on: March 27, 2013, 04:30:01 PM »
Does anyone have any examples of how the use the VBScript Interface with SBClient GUI as defined in the SB Programmers guide Chapter 13 VBScripts Interface? On the AccuTerm its very nice and the man who devloped it gave us an example
AccuTerm
* Declare Variables
      *
      ESC = CHAR(27)
      STX = CHAR(2)
      EM = CHAR(25)
      LF = CHAR(10)
      CRLF= CHAR(13):CHAR(10)
      ST = ""
      *
      ST := '  Dim strPath As String':EM
      ST := '  strPath = GetAssociation ("':FILE.PATH:'","':FILE.NAME:'")':EM
      ST := '  strPath = Trim(strPath)':EM
      ST := '  strPath = Replace(strPath,vbNullChar,"")':EM
      ST := '  X = Shell(strPath & " " & ':CHAR(34):FILE.PATH:"\":FILE.NAME:CHAR(34):',3)':EM
      ST := 'End Sub':EM
      *
      ST := 'Private Declare Function FindExecutable% Lib "Shell32.DLL" (ByVal lpszFile$, ByVal lpszDir$, ByVal lpszResult$)':EM
      *
      ST := 'Function GetAssociation (Path As String, FileName As String)':EM
      ST := '  Dim Result As String, X As Integer':EM
      ST := '  Result = Space$(256)':EM
      ST := '  X = FindExecutable(FileName, Path, Result)':EM
      ST := '  GetAssociation = Result':EM
      ST := 'End Function':EM
      ST := 'Sub Dummy'
      *
      * Turn screen display off and receive Xml document via INPUT statment
      * After the data is recieved Turn screen display back on.
      *
      ECHO OFF
      CRT ESC:STX:'P ':ST:CRLF
      ECHO ON
      *
      RETURN
   END
So how can this be accomplished in SBClient using TU.CREATE.SCRIPT? I can't find anyone who has done this?

Thanks Eric :- ???

LasVegasSBUser

  • Professional
  • ***
  • Posts: 28
Re: TU.SCRITPT.CREATE
« Reply #1 on: March 27, 2013, 05:16:13 PM »
Ok there seems to be something in the SBDEMO SCRIPT.DEMO so I may have got lucky.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: TU.SCRITPT.CREATE
« Reply #2 on: March 27, 2013, 05:36:27 PM »
Let me know if you need something.  We've done some stuff with this.  It's not obvious.
-Kevin
Accidents "happen"; success, however, is planned and executed.

LasVegasSBUser

  • Professional
  • ***
  • Posts: 28
Re: TU.SCRITPT.CREATE
« Reply #3 on: March 28, 2013, 01:20:59 PM »
Hey Kevin where can I find a list of Error codes I keep getting a 130001 error?
Thanks

LasVegasSBUser

  • Professional
  • ***
  • Posts: 28
Re: TU.SCRITPT.CREATE
« Reply #4 on: March 28, 2013, 01:25:31 PM »
Ok I am guessing it states that the SBClient major release numbers don't match according to the TU Errors

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: TU.SCRITPT.CREATE
« Reply #5 on: March 28, 2013, 01:35:40 PM »
I'm not sure what that error is, but it wouldn't surprise me if that's what it is.  This code is a real pain in checking that the exact version of the client side software matches what the server is expecting.
-Kevin
Accidents "happen"; success, however, is planned and executed.