Hello Richard,

Wednesday, October 16, 2002, 5:31:02 PM, you wrote:

HR> Hello,

HR> I have a question regarding spaces in a table name. MapIndo automatically
HR> puts underscores at the position of a space, like this:

HR> Open Table "C:\WINNT\Profiles\id002273\Desktop\Drivetest\BERKEL EN
HR> RODENRIJS_20021016.TAB" Interactive
HR> Map From BERKEL_EN_RODENRIJS_20021016

HR> How can I get the same thing in mapbasic when I'm using a function like
HR> this:

HR> Open table
HR> "C:\WINNT\Profiles\id002273\Desktop\Drivetest\"+Maptitle+"_"+curdate()
HR> Interactive
HR> Map from Maptitle+"_"+curdate()

HR> This way mapinfo doesn't make the map.

HR> Thanks,

HR> Richard
Following API function helps you :)

GetShortPathName
The GetShortPathName function retrieves the short path form of a specified input path. 

DWORD GetShortPathName(
  LPCTSTR lpszLongPath,  // null-terminated path string
  LPTSTR lpszShortPath,  // short form buffer
  DWORD cchBuffer        // size of short form buffer
);

ex.:
was - C:\Program Files\....
now - C:\Progra~1\....

-- 
Best regards,
Vladimir Lashin
microOLAP Technologies LLC

-------------------------------------------------------------------------------------------------------
MBBuilder - Visual Development Tool for MapBasic - 
http://www.microolap.com/products/gis/mbbuilder.htm
Raster Handler for ERDAS Imagine to MapInfo - 
http://www.microolap.com/products/gis/imgrhl.htm
MapInfo Callbacks Manager ActiveX - http://www.microolap.com/products/gis/micmx.htm
EasyMap VCL - http://www.microolap.com/products/gis/easymap.htm
-------------------------------------------------------------------------------------------------------

mailto:[EMAIL PROTECTED]
http://www.microolap.com/gis/ - GIS related products



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3607

Reply via email to