On 13/12/2007, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > s := 'ATH^M^J'; > > Shouldn't you use the relevant #xxx chars here?
Oops! You are right. I also noticed that I was using SerWrite() wrong. The third parameter is not a 'out' parameter as I assumed! status := SerWrite(serialhandle, s, writecount); had to change to status := SerWrite(serialhandle, s, Length(s)); Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal