home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
BF
/
BF015.ZIP
/
PCPM4.EXE
/
arc
/
CPAMENU.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-08-18
|
4KB
|
182 lines
REM **** CPAMENU ****
common cpafile$
'cpafile$=command$
cls
UpperCase:
def fnucase$(cpafile$)
length=len(cpafile$)
if length=0 then
exit def
end if
for I=1 to length
ch=asc(mid$(cpafile$,I,1))
if ch>96 and ch<127 then
mid$(cpafile$,I,1)=chr$(ch-32)
end if
next
fnucase$=cpafile$
end def
if len(cpafile$)>0 then
gosub fileline
end if
if len(cpafile$)=0 then
print " PERSONAL COMPUTER PROJECT MANAGEMENT"
GetFile1:
locate 3,1
input "Enter the name of the input file ";cpafile$
length=len(cpafile$)
if len(cpafile$)=0 then
goto GetFile1
end if
cpafile$=fnucase$(cpafile$)
gosub fileline
end if
CLOSE
DIM B$(20)
DosVer: 'tests for DOS version
shell "ver >ver.dat" ' if version 2 then opt 17 disabled
close ' if version 3 the opt 17 enacled
open "ver.dat" for input as #1
while not eof(1)
vers$=input$ (1,#1)
vers=asc(vers$)
if (vers = 49 or vers = 50) then
goto ver2
end if
if vers = 51 then
goto ver3
end if
testver:
if ver <= 48 or vers => 52 then
goto another
end if
another:
wend
goto ver2
ver3:
O5=17 'NUMBER OF OPTIONS for DOS 3
goto main
ver2:
O5=16 'NUMBER OF OPTIONS for DOS 2
main:
close #1
kill "ver.dat"
A$="MENU OF PCPM OPTIONS"
FOR I=1 TO O5
READ B$(I)
NEXT I
PRINT
DATA "INFORMATION","ENTER/CHANGE SUBCONTRACTOR/COMMENT FILE"
DATA "ENTER/CHANGE INPUT FILE"
DATA "CREATE/CHANGE HOLIDAYS"
DATA "PERFORM CRITICAL PATH ANALYSIS","PERFORM CASH FLOW ANALYSIS"
DATA "PRODUCE BAR CHARTS"
DATA "SORT OUTPUT","EXTRACT OUTPUT BY SUBCONTRACTOR","CHECK NODE NUMBERS"
DATA "GET PRECEDENCE OR SUCCEEDENCE DISPLAY"
430 DATA "CONVERT WORKING DAYS TO PROJECT DAYS"
DATA "GENERATE CURRENT COST REPORT","CHANGE ALL NODE NUMBERS"
DATA "CONSOLIDATE UPDATE FILES TO INPUT FILES"
data "WORK WITH A NEW OR DIFFERENT FILE"
data "EXIT TEMPORARILY TO DOS"
PRINT TAB(22);A$
PRINT
PRINT TAB(10);"EXIT PCPM SYSTEM";TAB(50);"- 0"
FOR I=1 TO O5
IF I>9 THEN
goto 520
end if
PRINT TAB(10);B$(I);TAB(50);"- ";I
GOTO 530
520 PRINT TAB(10);B$(I);TAB(50);"-";I
530 NEXT I
PRINT
INPUT "CHOOSE THE ACTION BY ENTERING THE CORRECT INTEGER ",N
PRINT
IF N=0 THEN
goto 750
end if
IF N>O5 OR N<0 THEN
goto 430
end if
ON N GOTO 600,620,610,630,640,650,660,670,680,690,700,710,720,730,735,740,745,530
600 chain "CPAINFO"
610 chain "CPACUI"
620 chain "CPASBC"
630 chain "CPAHOLY"
640 chain "CPACPM"
650 chain "CPACFA"
660 chain "CPABAR"
670 chain "CPASORT"
680 chain "CPASUBS"
690 chain "CPANODE"
700 chain "CPAPRES"
710 chain "CPADAYS"
720 chain "CPACOS"
730 chain "CPACORC"
735 chain "CPAUPD"
740 chain "CPANEW"
745 ENVIRON "PROMPT="
ENVIRON "PROMPT=Type EXIT to return to PCPM$_$P$G
cls
SHELL
cls
gosub fileline
goto 430
750 CLS
PRINT "EXITING PCPM SYSTEM - GOODBYE FOR NOW"
IF LEFT$(TIME$,2)="22" THEN
PRINT
PRINT "P.S. If you have information to share, why not send a note to Len & Greg?"
end if
SYSTEM
fileline:
locate 25,1
color 0,15,0
locate 25,14
print "Project currently selected for use is ";cpafile$;"."
locate 24,1
color 7,0
print SPACE$(80);
locate 1,1
color 7,0
return