Executes

Executes are the DDE mechanisms for requesting that an application process data or perform an action. Service Manager provides two execute capabilities:

  • Transact
  • SetFocus

Transact

The Transact execute function directs Service Manager to execute a transaction as though a user had pressed a function key or button. The Transact execute function requires one operand that designates the number of the function key or button ID of the button that was pressed. This example in Visual Basic for Applications shows how to tell Service Manager that the “fill” key was pressed:

DDEExecute nChannel, “[Transact( ““9”” )]” ’issue a fill command

SetFocus

The SetFocus execute function directs Service Manager to place the focus in a named widget (using the field’s input property as the name). This example in Visual Basic for Applications shows the focus set to the file name input field in the data base manager format:

DDEExecute nChannel, “[SetFocus( ““file.name”” )]” ’