home *** CD-ROM | disk | FTP | other *** search
- ********************************************************************
- * TRYPUT.PRG Clipper S87
- * Sample program to demonstrate using the put function.
- * Prints columns of numbers across the page.
- ********************************************************************
- SET DEVICE TO PRINT
-
- ljsetup()
- helv()
-
- n = 0
- FOR c = 1 TO 75 STEP 5 && Column
- FOR r = 1 TO 65 && Row (line)
- n = n + 1
- x = ALLTRIM(STR(n))
- PUT(r, c, x)
- NEXT
- NEXT
- SET DEVICE TO SCREEN
- EJECT
- RETURN
-
- FUNCTION put
- PARAMETER row, col, text
- ??? CHR(27)+'&a'+ALLTRIM(STR(col))+'C'+CHR(27)+'&a'+ALLTRIM(STR(row))+'R'+text
- RETURN .t.
-
- FUNCTION ljsetup
- ??? CHR(27) + "E" && Resets Laserjet to front panel defaults
- RELEASE lpi, pitch
- PUBLIC lpi, pitch
- lpi = 6 && Set up lines per inch
- pitch = 10 && Set up pitch (characters per inch)
- RETURN ""
-
- FUNCTION helv
- PARAMETERS point
- ??? CHR(27) + "&l0O" + CHR(27) + "(0U" + CHR(27) + "(s1p" + ;
- LTRIM(STR(point,5,2)) + "v0s0b4T"
- RETURN