All Frameworks  Object Hierarchy  This Framework  Indexes   

BehaviorVBScript (Object)

Represents the VBScript behavior.
Role: The VB script behavior is designed to run a VBScript (or catvbs files) or to reference a VBA project. This interface derives from Behavior and enables the manipulation of the internal variables of the VBScript behavior.

Method Index

Cancel
Inform Client VB has Failed & Has Not operated.
Done
Inform Client VB has Successfully Finished.
GetInternal
Returns one available io of the behavior.
PutInternal
provide output of one available io of the behavior.
Start
Inform Client VB has Started.
Suspend
Inform Client VB has not completly finished the task and has to be called later on
Example:
TestInternal
Test for one available output of the behavior.

Methods


o Sub Cancel()
Inform Client VB has Failed & Has Not operated.
Example:
Deprecated:
V5R15 (Not needed)
o Sub Done()
Inform Client VB has Successfully Finished.
Example:
Deprecated:
V5R15 (Not needed)
o Func GetInternal( pName) As
Returns one available io of the behavior. The behavior has to be in executing mode, otherwise it fails
Example:
This example retrieves in BehParameter the internal parameter CATIAReference XXX currently managed by a Behavior Beh.
 Dim BehParameter as Parameter
 Set BehParameter = Beh.GetInternal("XXX")
 
o Sub PutInternal( pName,
oValue)
provide output of one available io of the behavior. The behavior has to be in executing mode, otherwise it fails
Example:
This example assign the BehParameter containing a CATIAReference to the internal parameter XXX currently managed by a Behavior Beh.
 Dim BehPower as Parameter
 Beh.PutInternal "XXX", BehParameter
 
o Sub Start()
Inform Client VB has Started.
Example:
Deprecated:
V5R15 (Not needed)
o Sub Suspend()
Inform Client VB has not completly finished the task and has to be called later on
Example:
Deprecated:
V5R15 (Not needed)
o Func TestInternal( pName) As
Test for one available output of the behavior. The behavior has to be in executing mode, otherwise it fails
Example:
This example test for the value existance of an internal parameter XXX that may contain or not a CATIAReference currently managed by a Behavior Beh.
 if (Beh.TestInternal("XXX"))
 

Copyright © 2003, Dassault Systèmes. All rights reserved.