Use the Run Command function in MapBasic.  You can write multiple " to
signify a ".  
 
E.g.
to place a SHADE WINDOW command in a MapBasic Program try
 
szCommand = "Shade window "+FrontWindow()+" 1 with "+ColumnInfo(MYTABLE,
"col1", COL_INFO_NAME)+" ignore """" values """+szMyValue+""" Brush
(2,16711680,16777215) Pen (1,2,0) default Brush (2,65280,16777215) Pen
(1,2,0)"
Run Command szCommand
 
Will produce the following line
Shade Window 12345678 1 with COLUMN1NAME ignore "" values "MYVAL" Brush
(2,16711680,16777215) Pen (1,2,0) default Brush (2,65280,16777215) Pen
(1,2,0)
 
Obviously some artistic license has been used with the names, but you get
the gist?
Hope this helps,
Mark Crompton

-----Original Message-----
From: Ian Allan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 10, 2000 2:12 AM
To: Frontier Mapping Pty Ltd
Cc: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Subject: Re: MI MAPBASIC: Putting " inside strings, eg string = Press "Push"


Hi Michelle 

You may need to try using Chr$(34) instead of  ". 


Good Luck 
Ian Allan 
  
  


Frontier Mapping Pty Ltd wrote: 


Hi, I have a program that only exports files to NonEarth (it's a bug in
their software)  I'm trying to write a MB app that will read in their MIF
file, replace with an appropriate projection and then import into Mapinfo.
However the string that defines the projection has "m" within it, ie the
inverted comma's need to be part of the string.  I've tried "&"m"&" but that
doesn't work. I KNOW theirs a way of doing this, but how? (the rest works
fine!) Help appreciated, Thanks,  Michelle, Melbourne, Australia
<mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to