you could do it without printxy (with label or so to save you some strokes.

with printxy you can do it like:
code:
Function test
$anzahlprinterconnection = 1
$Form.forecolor=$form.backcolor
$Form.PrintXY($tab,260, $defprintername )
$defprintername = "Testprinter"
$Form.forecolor=black
$Form.PrintXY($tab,260, $defprintername )
EndFunction

you must remember, that printxy is not object but just a form painter.
it paints something on the background and thus it's usage is little tricky.

[ 29. April 2003, 13:51: Message edited by: Lonkero ]
_________________________
!

download KiXnet