>>IF .NOT. EMPTY(consig) && If this variable contains Company name >> consig = ALLTRIM(consig) >> cWhere = cWhere = cWhere + IIF(lAnd," AND ","") + "globalnew.Company LIKE '%"+consig+"%'" && Add ' before first & after second % >> lAnd = .t. >>ENDIF >>>
IF .NOT. EMPTY(consig) && If this variable contains Company name consig = ALLTRIM(consig) cWhere = cWhere + IIF(lAnd," AND ","") + "globalnew.Company LIKE '%"+consig+"%'" && Add ' before first & after second % lAnd = .t. ENDIF