DDEExecute With Very Long Strings

A

ags5406

I'm using DDEExecute to send some MapBasic commands to MapInfo
Professional (I don't have the standalone MapBasic program so I'm
cheating a bit) from Excel VBA. For the most part it works flawlessly.
I'm pretty happy.

However, I have some very long MapBasic commands that don't seem to be
sent completely.

For examle, the MapBasic command "Create Cartographic Legend" only
works if I have a small number of items for the legend. If the string
is very long the entire command does not get sent or does not execute.

Has anyone else ever had this problem with sending very long strings to
MapInfo Pro from Excel VBA using DDEExecute? Or to any other programs
for that matter?

Is there a string length limit?

Thanks in advance.
 
P

Peter T

FWIW, in a quick test from Word sending a long string to an Excel cell with
DDEExecute I found the length was truncated to 256 in the cell.

Regards,
Peter T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top