home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
dbcmpile.zip
/
COMPILE3.PRG
< prev
Wrap
Text File
|
1986-02-16
|
1KB
|
42 lines
*** compile3.prg
CLEAR ALL
SET SAFETY OFF
SET DELIMITER OFF
SET talk OFF
SET echo OFF
SET BELL OFF
USE compile3
COPY STRUCTURE TO temp3
USE temp3
CLEAR
DISPLAY files LIKE *.*
STORE ' ' TO progname
@ 20,10 SAY 'Enter the name of the program to be Pseudo - Compiled'
@ 21,10 GET progname PICTURE '!!!!!!!!'
@ 21,18 SAY '.PRG'
READ
STORE TRIM(SUBSTR(progname,1,7)) + 'C.PRG' TO m_prog
STORE TRIM(progname) + '.PRG' TO progname
APPEND FROM &progname sdf
go TOP
SET ALTERNATE TO &m_prog
SET ALTERNATE ON
DO WHILE .NOT. EOF()
STORE 1 TO cnt
DO WHILE (SUBSTR(line,cnt,1) = ' ' .AND. cnt < 50) .OR. SUBSTR(line,cnt,1) = CHR(9)
STORE cnt + 1 TO cnt
ENDDO WHILE ($(line,cnt,1) = ' ' .AND. cnt < 50) .OR. $(line,cnt,1) = CHR(9)
IF SUBSTR(line,cnt,1) = '*' .OR. SUBSTR(line,cnt,1) = ' '
DELETE
ELSE
STORE TRIM(SUBSTR(line,cnt,254-cnt)) TO m_line
? m_line
ENDIF $(line,cnt,1) = '*' .OR. $(line,cnt,1) = ' '
SKIP
ENDDO WHILE .NOT. EOF
SET ALTERNATE OFF
USE
DELETE FILE temp3.DBF
RETURN