home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
report
/
rroutine
/
rrtest.prg
< prev
Wrap
Text File
|
1988-07-16
|
725b
|
46 lines
clear
?getprn(.t.)
return
****************
FUNCTION GetPrn *
*****************
PARA asciiok
PRIVATE retval,i,prncnt,scr
retval=""
scr=SPACE(4096)
SAVE SCREEN TO scr
DECLARE prntbl[10]
prncnt=0
FOR i=1 to 8
prntbl[i]=RrPrn(i)
IF !EMPTY(prntbl[i])
prncnt=prncnt+1
ENDIF
NEXT
IF asciiok
prncnt=prncnt+1
prntbl[prncnt]="ASCII"
ENDIF
IF prncnt>0
@ 5,0 CLEAR
@ 5,20 to 6+prncnt,50 DOUBLE
FOR i=1 TO prncnt
@ 5+i,25 PROMPT prntbl[i]
NEXT i
SET MESSAGE TO
i=0
MENU TO i
DO CASE
CASE i=0
CASE asciiok .AND. i=prncnt
retval="A"
OTHERWISE
retval=STR(i,1)
ENDCASE
ENDIF
RESTORE SCREEN FROM scr
RETURN(retval)