Xbasic
DDE.TERMINATE_ALL Function
Syntax
V Terminate_All()
Description
The DDE.TERMINATE_ALL() method closes all open DDE channels. This is equivlent to using the <DDE>.CLOSE() method on each open channel.
Example
This script is attached to a button on a form for the customer table. It places information from the current customer record into a Microsoft Word document that contains three bookmarks: NAME, ADDRESS, and CITYZIP.
tbl = table.current()'get a reference to the customer table link = dde.open("winword", "Letter1") fullname = trim(tbl.first_name) + " " + tbl.last_name link.poke("NAME",fullname) if .NOT. tbl.address_2.IS_blank() addr = tbl.address_1 - chr(13) + chr(10) + tbl.address_2 else addr = tbl.address_1 end if link.poke("ADDRESS", addr) cityzip = tbl.city + ", " + tbl.state_prov + " " + tbl.zip link.poke("CITYZIP",cityzip) dde.terminate_all()
See Also