Sends an unsolicited data item to a DDE server application.
[ lStatus = ] DdePoke ( hConv, sItem, sData )
The DdePoke procedure syntax has the following parts:
|
Name |
Type |
Description |
|
lStatus |
Long |
Status |
|
hConv |
Val AHandle |
OLE_Handle of the DDE conversation |
|
sItem |
Val BString |
The item where the sData is sent |
|
sData |
Val BString |
The data for sItem |
Returns TRUE for success and FALSE for failure. The data format supported is text. The function waits until the server sends back an acknowledgement. The timeout can be specified by the DdeTimeout.
If (DdePoke(hConv, "R1C1", "Hello Excel")=FALSE) Then
Abort
Endif
! Set the A1 cell in an Excel worksheet to "Hello Excel"