home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
dbase
/
statbar
/
barproc.prg
< prev
Wrap
Text File
|
1987-03-30
|
1KB
|
69 lines
* Program..: Barproc.PRG
* Author...: Jon Wind
* Date.....: March 30, 1987
* Version..: dBASE III PLUS
* Note(s)..: This is the procedure file for Bar.PRG.
*
* dBASE III PLUS procedures:
PROC buildbar
PARA row,title,colr
SET COLO TO &colr
@row,(80-LEN(title))/2 SAY title
@row+3,13 SAY "0 10 20 30 40 50 60 70 80 90 100"
@row+4,12 TO row+6,65 DOUB
SET COLO TO 7
PUBL barline
barline=row+5
@barline,14 SAY ""
RETU
PROC barstat
PARA cnt,colr
SET COLO TO &colr
IF cnt>0
@barline,14 SAY REPL(CHR(219),cnt/2)
IF cnt/2>INT(cnt/2) && odd #'s
??CHR(221)
ENDI
ENDI
SET COLO TO
RETU
* dBASE III procedures:
PROC buildbr2
PARA row,title,colr
SET COLO TO &colr
@ROW,(80-LEN(title))/2 SAY title
@row+3,13 SAY "0 10 20 30 40 50 60 70 80 90 100"
@row+4,12 SAY CHR(201)+SUBS(dbar,1,52)+CHR(187)
@row+5,12 SAY CHR(186)+SPAC(52)+CHR(186)
@row+6,12 SAY CHR(200)+SUBS(dbar,1,52)+CHR(188)
SET COLO TO 7
PUBLIC barline
barline=ROW+5
@barline,14 SAY ""
RETU
PROC barstat2
PARA cnt,colr
SET COLO TO &colr
IF cnt>0
@barline,14 SAY SUBS(bar,1,cnt/2)
IF cnt/2>INT(cnt/2) && odd #'s
??CHR(221)
ENDI
ENDI
SET COLO TO 7
RETU