Previous Topic

Next Topic

Inhoudsopgave

Book Index

Calling Scripts Within Scripts

Description

Allows you to start certain functions in other scripts.

Properties, Procedures and Functions

Function Procedure GetScript( Scriptcode: String): String

Function Procedure Runscript( Script: String, function: String, parameters: array): Variant

Example

Script 'Script1'

sub main

dim Parameters, Script

Parameters = Array("My","Name")

Script = Application.GetScript("Script2")

msgboxapplication.RunScript(Script,"AFunction",Parameters)

end sub

Script 'Script2'

function AFunction (One, Two)

MsgBox One & "" & Two

AFunction = "Done"

end function