CREATE AUTOMATION Example


Example:

 

*

 

 

.Define the AUTOMATION object and other variables

.

 

 

WORD

AUTOMATION

 

DOCS

AUTOMATION

 

AUTOTRUE

INTEGER

4,"0xFFFFFFFF"

*

 

 

.Create the Automation object and make it visible

.

 

 

  

CREATE

WORD,CLASS="Word.Application"

  

SETPROP

WORD,*VISIBLE=AUTOTRUE

*

 

 

.Create a new document

.

 

 

  

GETPROP

WORD,*Documents=DOCS

  

DOCS.ADD

GIVING DOCS

*

 

 

.Activate the application

.

 

 

  

DOCS.ACTIVATE

 

 

This example creates an AUTOMATION object using the Microsoft Word application. The Word application is made visible and a new document created. The user is then allowed to interact with the Word application.

 

 



PL/B Language Reference CREATE ANIMATE Example CREATE BUTTON Example