Simply use the StringReplace() function to replace you parameter with the desired value. Personally, I used the Format function...
Format('select * from %s where %s', ['table','a=b']); Best regards. -- Alexandre Leclerc _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives