#IF (!0=3)
#IFCLASS !1 "F" // if file field we want to rtrim the value - only works with WP2
Send DFWrite of WinPrintID !1 !2 0 !3 1 // last param is 0 or 1 - 1=right trim
#ELSE
Send DFWrite of WinPrintID !1 !2 0 !3 0
#ENDIF
#ENDIF
#IF (!0=2)
DFWrite !1 !2 -1
#ENDIF
#IF (!0=1)
DFWrite !1 FONT_DEFAULT -1
#ENDIF