capture program drop escape_all_quotes *! version 1.0 * Get strings ready for mysql on all variables * By Michael Ewens. 2-27-2009 version 7.0 program define escape_all_quotes foreach var of varlist * { capture confirm string variable `var' if !_rc{ escape_quotes `var' } } end