Documentation

#CALL

CALL

Syntax: #CALL expression

Executes a method for a COM object, or evaluates any expression. Use instead of #NOOP for executing functions.

Examples:

#VAR Outlook %comcreate("Outlook.Application")
#VAR NameSpace @Outlook.GetNamespace("MAPI")
#VAR Folders @NameSpace.Folders("Personal Folders")
#VAR InBox @Folders.Folders("InBox")
#VAR Msg @InBox.Items(1)


#CALL %comset(Msg,"Subject","This is a test")
#CALL @Msg.Save


Retrieves the first email message in your InBox (stored in Msg). Then #CALL changes the Subject property of that message to "This is a test". Then, using the #CALL command, the new message is saved.

Add comment

Login or register to post comments