DADiSP Worksheet Functions > Function Categories > Dynamic Data Exchange (DDE) > DDEUNADVISE

 

DDEUNADVISE

Purpose:

Ends a previous DDEADVISE operation.

Syntax:

DDEUNADVISE(chan, "item")

chan

-

An integer, the DDE channel number returned by DDEINITIATE.

"item"

-

A string, the item of the DDE conversation to terminate.

Returns:

A 1 if successful; otherwise it returns 0 indicating an error.

Example:

chan = ddeinit("Excel", "Sheet1")

ddeadvise(chan, "R1C1:R100C1")

 

perform other operations ...

 

ddeunadvise(chan, "R1C1:R100C1")

 

establishes a DDE conversation with Excel, returns the value of the cells in row 1, column 1 through row 100 column 1 as a series in the current window. Whenever a cell changes, the new series is appended to the existing series. Lastly, the link is terminated.

Remarks:

DDEUNADVISE only terminates the advise operation, the DDE channel is still valid for other DDE operations.

See Also:

DDEADVISE

DDELINK