Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From memory there is a limit of 255 characters in the string in a DDEExecute
call from Excel VBA. This is sort of backed up by this http://www.kbalertz.com/142357/Visua....BuildSQL.aspx I know that's a bit woolly, but it was a long time ago. Good luck -- www.alignment-systems.com "ags5406" wrote: 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "John.Greenan" wrote in message ... From memory there is a limit of 255 characters in the string in a DDEExecute call from Excel VBA. This is sort of backed up by this http://www.kbalertz.com/142357/Visua....BuildSQL.aspx I know that's a bit woolly, but it was a long time ago. Good luck -- www.alignment-systems.com "ags5406" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wildcard MATCH() breaks on long (?) strings | Excel Worksheet Functions | |||
Filter long Text strings | Excel Worksheet Functions | |||
Reading long strings (with jdbc) from Excel | Excel Programming | |||
Best structure to store a long list of strings? | Excel Programming | |||
Best structure to store a long list of strings? | Excel Programming |