Error reading a formula containing a DDE link

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
tgr
Posts: 2
Joined: Tue Jan 06, 2009 7:14 am

Error reading a formula containing a DDE link

Post by tgr »

If I use the statement below to read a formula containing a DDE link, I get an incorrect result:

strFormula := XLS.Sheets[SheetIx].AsFormula[Col, Row];

Expected:
server|topic!'item'

actual:
server|topic!item (without the quotes)

To fix the problem, I created an override for the GetName function in TExtNameDDE like this:

function TExtNameDDE.GetName: WideString;
begin
Result := #39 + CompressedStrToWideString(FName) + #39;
end;

Trond
Post Reply