>I don't understand the difference between the first option and the second line of the second option. In both cases, lcCustno is a string, so what do the "[" and "]" do in the first case?
>
[] can be used as string delimiters, like '' or ""; since they're less likely to occur in most string expressions, they're a safer choice for making a literal. String literals must be quote-encapsulated, so that means "
string", '
string' or [
string] is needed to make the literal. I find the last less subject to a stray delimiter in the string, for example, if you use the single quote, the macro expansion causes an error with the following example:
lcCustName = "Pinhead Ed"
SET FILTER TO custname = '&lcCustName' && seems to work
lcCustName = "O'Malley"
SET FILTER TO custname = '&lcCustName' && whut did it dew?
I hate to use your favorite FLA, but
RTFM and look at what goes on in string expressions, literals, and macro-expansion.
Numbers are not quote-encapsulated as literals. Macro-expansion requires a string to be specified for expansion.