Ekas Software Windows Script Host Control for Delphi Help
Calling unit routines and using unit variables in script
Quick start: common questions
To make calling Delphi object methods from script possible, you need to use special expert (contained in ekwrpexpXX package) to generate import units and add them to project.

Then you can use unit procedures, functions and variables (wich are declared in "interface" section of unit and have OLEVariant-compatible types of values and parameters) in script, for example:

Sub Main

...

call Unit1.Proc1(Param1)

MasgBox Unit1.StrVariable1

...

End Sub


Ekas Software Windows Script Host Control for Delphi Help
Copyright (c)2002,2003 Ekas Software