1. Description

    For some advanced comparsions of changes you might want to access the basic code in clear text.

  2. Answer

     

    • The attached file(ScriptEngine.zip) must be renamed to .DLL and must be placed in the PM directory
    • Then it must be registered (Run cmd.exe as administrator and execute: C:\Program Files (x86)\PrintMachine\PrintMachine 4.0>C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /tlb ScripEngine.dll
      Microsoft .NET Framework Assembly Registration Utility version 4.0.30319.17929 for Microsoft .NET Framework version 4.0.30319.17929
      Copyright (C) Microsoft Corporation. All rights reserved.
      Types registered successfully
      Assembly exported to 'C:\Program Files (x86)\PrintMachine\PrintMachine 4.0\ScripEngine.tlb', and the type library was registered successfully
      C:\Program Files (x86)\PrintMachine\PrintMachine 4.0>
    • Start PM and stop the basic and register the reference
    • Implement a function like this
           Private Sub scriptit()
           On Error GoTo scriptit_errors
           Dim s As String
           Dim se As New ScripEngine.Decoder
           s = se.LoadFileContent (App.Path & "Application.bas")
           If Not se Is Nothing Then Set se = Nothing
           Exit Sub
           scriptit_errors:
           If Not se Is Nothing Then Set se = Nothing
           App.PrintMessage ("Error in Scriptit: " & Err.Description )
           End Sub
    • And you have the Source code as lines that could also be written to a text file

     

Date created:
01/22/2015 11:38:32
Last updated:
02/11/2015 10:25:33
Product(range):
OMS-500
Print