Requesting and Sending Items

Previous Next

In a DDE conversation, the client may send items to the server and request items from it. USoft Developer supports sending field values to a DDE server and retrieving field values from it. These fields are fields from currently open windows. The item name of a particular field is "ObjectNamePlural.ColumnName" (where "ObjectNamePlural" is the Object Name Plural as defined in the repository, and "ColumnName" is the name of the column underlying the field).

When you request or send an item, you must specify its format, which is one of the available Windows data formats. You must also specify the resource of the current Field that is either set to the requested item or queried to obtain the value of the item to be sent.

To request an item, call:

DdeRequest( service, topic, item, format, resource )

 

To set an item in the server, call:

DdePoke( service, topic, item, format, resource )

 

Service and topic refer to a current DDE conversation, which must have been opened by a call to DdeConnect().

Item is the requested item.

Format is the format in which this item is to be delivered. The standard string representing the MS Windows data format is CF_TEXT.

Resource is the resource of the current object that should be set to the value returned by the call to DdeRequest(). At this moment, only the "value" resource is supported. This means that DdeRequest() can only be used to set a value in the current field. This may be the field from which this action is called or the client of the decision calling this action.