Escaping Quotes?

Mark Wieder mwieder at ahsoftware.net
Wed Mar 31 12:01:14 EDT 2010


Andrew-

Wednesday, March 31, 2010, 8:45:38 AM, you wrote:

> I need to do this:

> put "C:\Program Files\Visual CUT 11\Visual CUT.exe" -e "C:\Rev\FOM2\Lease
> Reports\All Leases\LeasePaymentsbyLeaseName.rpt" "Parm1:2010" into sCommand

BZ #8517 is filed to request the use of single quotes in strings, but
it's an enhancement request, so it's unlikely ever to get any
attention. In the meantime, you can do (watch the wrapping)

put quote & "C:\Program Files\Visual CUT 11\Visual CUT.exe" & quote \
 && "-e" \
 && quote & "C:\Rev\FOM2\Lease Reports\All
 Leases\LeasePaymentsbyLeaseName.rpt" & quote \
 && "Parm1:2010" into sCommand

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list