DdeRequest Procedure

Requests a data item from a DDE server application.

Syntax

[ sData = ] DdeRequest ( hConv, sItem )

The DdeRequest procedure syntax has the following parts:

 

Name

Type

Description

sData

BString

The requested item data

hConv

Val AHandle

OLE_Handle of the DDE conversation

sItem

Val BString

The requested item

Comments

Returns the contents of the requested item (sItem). The data format supported is text. The function waits until the server sends back the data. The timeout can be specified by the DdeTimeout function.

Example

sData=DdeRequest(hConv, "R1C1")

If left(sData, 5) <> "Hello" Then

Abort

Endif

! Checks if the cell A1 in an Excel worksheet starts with "Hello"

See Also

DdeExecute, DdePoke, DdeTimeout