613-518-1166 info@zimdatabases.com

ZIM Language Reference

DDEPeek

< All Topics

DDEPeek

Syntax

procedure DDEPeek (out tErrCode, inout tServ,
 in dde_item, out dde_val)

Parameters

tErrCode

longint, an error code

tServ

longint, connection handle

dde_item

char, item name

dde_val

char, value of the returned item. Must be a string at least five characters in length

Comments

DDEPeek retrieves the value of a specific item from a remote application. Consult the documentation of the remote application for information on what constitutes an item. The value of an item is always returned as char.

The filename is ddepeek.pgm.

Example

For example, given that DDE_Err and hServ are of type longint, that DDE_OutValue is of type alpha and is 10 characters long, and that hServ has been set in a previous call to DDEConnect, to retrieve the value of row 1, column 1 in the current spreadsheet, enter the following:

DDEPeek(DDE_Err, hServ, ‘R1C1’, DDE_OutValue)

This example “peeks” at the value of the cell at row 1, column 1 and places the retrieved value in DDE_OutValue.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents