Executes a method for a COM object. Create a comvariable reference using %comcreate. If the method requires any arguments, list them after the method name. NOTE: Method names in COM are CASE SENSITIVE.
Examples:
#VAR Outlook %comcreate("Outlook.Application") #VAR NameSpace %comget(Outlook, "GetNamespace", "MAPI") #VAR Folders %comget(NameSpace, "Folders", "Personal Folders") #VAR InBox %comget(Folders, "Folders", "InBox") #VAR Msg %comget(InBox,"Items",1)#NOOP %comset(Msg,"Subject","This is a test") #COM Msg Save
Retrieves the first email message in your InBox (stored in Msg). Then changes the Subject property of that message to "This is a test". Then, using the #COM command, the new message is saved.
![]() ![]() ![]() |