The Scriptor Methods

When you display the property pages for a Scriptor component in the Win32®-based Pipeline Editor, select Internal, and then click the Edit button, the Scriptor component displays an edit window that contains the three routines that the Scriptor component can process:

'The following entry points are available (shown in VBScript format):

function MSCSExecute(config, orderform, context, flags)

    MSCSExecute = 1
end function

sub MSCSOpen(config)

end sub

sub MSCSClose()

end sub

These routines are called the Scriptor component’s entry points, and you can think of them as you would think of the event handlers for a Visual Basic object or Microsoft® ActiveX® control. You fill in the body of these routines with your own task-specific scripting code, and when the order processing pipeline (OPP) runs the Scriptor component, it executes the code that you write.

The script that you write for your MSCSOpen subroutine is executed immediately after the Scriptor component is created. The MSCSExit subroutine is executed after the Scriptor component is destroyed. The MSCSExecute function is called after MSCSOpen and before MSCSExit.

Of the three exports that make up a default Scriptor component, only the MSCSExecute method is required. The parameters that the Scriptor component passes to this function include the following:


© 1997-1998 Microsoft Corporation. All rights reserved.