I need to filter records on a character expression. I have written
a1 = "KUM'AR"
lcLikeExpr = [LIKE('*] + A1 + [*',Particular)]
SET FILTER TO &lcLikeExpr
** This is giving missing operand. As soon as variable a1 includes single apostrophy, I get error missing operand.
If I change this to
a1 = "KUM'AR"
lcLikeExpr = [LIKE("*] + A1 + [*",Particular)]
SET FILTER TO &lcLikeExpr
Then problem is solved for a1 = "KUM'AR", but error occurs for a1 = 'KUM"AR'.
a1 = "KUM'AR"
lcLikeExpr = [LIKE('*] + A1 + [*',Particular)]
SET FILTER TO &lcLikeExpr
** This is giving missing operand. As soon as variable a1 includes single apostrophy, I get error missing operand.
If I change this to
a1 = "KUM'AR"
lcLikeExpr = [LIKE("*] + A1 + [*",Particular)]
SET FILTER TO &lcLikeExpr
Then problem is solved for a1 = "KUM'AR", but error occurs for a1 = 'KUM"AR'.