LMD ScriptPack 5.10


LMD ScriptPack is a collection of native VCL components and classes that can be compiled into your application royalty free. This package enables Delphi/CBuilder applications to support active scripting languages installed in Windows Scripting Host (such as VB Script, JScript, etc). It provides the ability to run scripts from within your application and to share any application object inherited from TPersistent with the script interpreter engine. The TLMDScriptControl component allows to operate with Delphi objects, unit routines and variables in script, including reading and writing published properties, running methods, setting script procedures as event handlers etc.
LMD ScriptPack allows to extend functionality of an application by external scripts - source code changes or to rebuild projects is not required!

New features of release 5.1 are:
* New PascalScript Language support added. Unlike the previously MS ActiveScripting based languages this is a 100% native VCL implementation without need of external dlls. The PascalScript engine includes an optimizing byte code compiler and very fast interpreter. The PascalScript language is a dynamic Variant based script language that supports most of the Delphi Pascal expressions and statements like
** procedure/function declarations
** const/var/out parameters
** global/local variables and constants.
** Extended support of exception handling, e.g. raise, try-except and try-finally statements; real Delphi exceptions are raised internally that allow to test an exception class in handler, e.g. on E: EZeroDivide do.
** The PascalScript CodeObject engine implements a secret interface (in addition to IDispatch) that allows very fast interoperations between connected script controls. Besides that execption processing can be made transparent between connected script controls.
* Native script operators such as 'is', 'in', '@' and set constructors, e.g. [akLeft,akTop] allow to work with imported Delphi objects, instead of provided to ActiveX scripts special functions (e.g. SetMake, SetEmpty, ClassIs, EventMake, ect.). Like for the ActiveScripting based languages import units of your Pascal units can be created. Import units for the VCL are shipped with each copy of ScriptPack.
* New three step initialization of ScriptPack Control. New Prepare, Open and Close methods and a State property was added. In addition the new 'Prepared' intermediate state was introduced. In this state all source code is already parsed, but no global code is executed yet (CodeObject is already acessible in this state). This new feature allows circular dependencies between script controls even in case when global code is used (hence handling several scripts at the same time is simplified enormously). In simple cases a call to Prepare method can be ommitted. Finally the ACloseOnRuntimeError parameter was added to the Open method to allow leaving script control opened in the case that runtime errors occured during global code execution.
* New exception handling replaces Last ScriptError concept. Script control includes now the encoded source (reference to script control), error line and position information in exception messages (e.g. in string form). The LMDDecodeErrorMessageInfo procedure allows to decode this information for advanced applications.
* New optimized Delphi memory manager proxy allows to detect finalized object destructions. E.g. all subsequent access to IDispatch object wrapper will report 'Object has been destroyed' exceptions instead of unsafe Access Violations. This feauture is especially used by working with exceptions in PascalScript, because exception objects are automatically destroyed by the interpreter.
* New Create constructor and Copy method are implicitly generated in wrappers for Delphi record types to allow creating and copying records more naturally.

Exe-Demos demonstrating features of the package are available here:
[1] Debugger Demo
http://www.lmd.de/downloads/lmd2007vcl/ScriptPack_Debugger.zip
[2] Mapping demo (updated with PascalScript snippets)
http://www.lmd.de/downloads/lmd2007vcl/ScriptPack_Mapping.zip
[3] Scripted (VBScript) Notepad demo (now in PascalScript instead of VBScript)
http://www.lmd.de/downloads/lmd2007vcl/ScriptPack_Notepad.zip

LMD ScriptPack supports Delphi 7 - 2009 and C++ Builder 2006 - 2009.
This package can be purchased either standalone or as part of LMD DIE-Tools or LMD VCL Complete.





Related Discussions
  • EXECUTE AND WAIT UNTIL IT'S FINISHED DOESN'T WORK (2001-06-05 23:55:37)
    I found the solution! The real problem is, that InstallShield starts another Programm during the execution of setup.exe. This second program is...
  • TIMAGE / ONCLICK (2001-06-16 08:40:14)
    Search for LMD Tools components.There is one component that allows you to put an image on it. I Hope it helps you! Regards, Eduardo Tavares...
  • INFO ABOUT USERS/COMPUTERS IN THE LOCAR AREA NETWORK (2001-06-29 12:20:17)
    Does this component exist or du I have to make it myself, fallowing your code? I am really not that good with Delphi... Anyway, thank you...
  • FORM CONTAINER (2001-06-28 11:58:33)
    Thanks Rob, I didn't have no clue what the frame-thingy was until you told me, and I didn't belive it would be so simple to use... Thanks
  • HOW TO (2001-07-15 04:26:49)
    LorAn has suggested a good component there, I have used it many times. If you have a little more time on your hands and dont like components, you...
  • DOES ANYONE KNOW HOW TO FILL TEXT IN KARAOKE-STYLE? (2002-04-08 09:54:00)
    Hello, Have a look at ABF effects, http://www.abfsoftware.com also , http://www.lmd.de/products/eproduct.html Bunch more here,...
  • COMPONENT NEED! (2002-05-13 20:00:54)
    The LMDEdit that Billcnz suggested was great except for two things: 1. You must delete the first zero using Del key 2. And if you try to...
  • HOW TO COMPILE C++ COMPONENTS IN DELPHI (2002-05-31 14:04:07)
    P.S Some more RichEdit products, http://www.trichview.com http://www.wptools.com http://www.lmdsupport.com/mfs/products/LMDTools60.htm#LMD...
  • EFFECTS COMPONENTS? (2002-06-06 18:40:51)
    ok, I'm home now and have access to my own bookmarks here :) check out the following sites:...
  • PROBLEM WITH TRANSPARENT PANEL (2002-06-21 18:52:40)
    Hello, :-) Oh dont worry ,Il try to help in my spare time. The weekend is coming up. But Il still be as busy :-( You can also post your code...
Latest News
Submit News Form Past News
Latest Forum Entries