When setting variables you need to use := not just the equal sign.
Also, the statements which set variables need to end with a semi-colon.

iCountLeft:=InStr ({RemedyDaily.customer_notes},"Requested");
iCountRight:=InStrRev ({RemedyDaily.customer_notes},"Requested" ,0 );