I have fooled around with java, c++ and alittle VB 6.0 so I can kind of follow whats going on here. Below is sample code taken from a program that was written for a friends company, my question is what language is this? I had thought it was Quickbasic but I was doing some searches on google and I found something called GW-basic, and Qbasic. Now I am confused on what this program is written in. I would appreciate any help. Thanks in advance!!!
Code: Select all
1: DIM XX$(30),HDR$(5),Q$(20),FCT$(6)
FCT$(0)=" ":FCT$(1)="R ":FCT$(2)="S ":FCT$(3)="M ":FCT$(4)="RP":
FCT$(5)="SP":FCT$(6)="MP":
ON ERROR GOTO WHAT
E$=CHR$(27):HC$=E$+"[2J":MC$=E$+"[":LC$=MC$+"1D":BS$=LC$:
RC$=MC$+"1C":TS$=MC$+"1;1H":TB$=CHR$(1):UC$=MC$+"1A":
AL$=CHR$(7):DC$=MC$+"1B":RV$=MC$+"7m":RS$=MC$+"0m":
HDR$(0)="":HDR$(1)="CREATE":HDR$(2)="CHANGE":HDR$(3)="DELETE":HDR$(4)=\
" READ-ONLY":RT$=CHR$(13):RD$=MC$+"33m":GN$=MC$+"0m":FC1$="0"
Z8$="0 ":PRINT E$+"[00;58;8p";:PRINT E$+"[00;59;04p";:
PRINT E$+"[00;57;10p";:PRINT E$+"[00;60;03p";:
BK4$=LC$+LC$+LC$+LC$:FW6$=RC$+RC$+RC$+RC$+RC$+RC$:EOL$=STRING$(30," ")
PW$=COMMAND$:IF PW$="" THEN UF$="c:\ACES\USERDATA.ONE":GOTO 12
IF END #5 THEN 22
OPEN "INSTDATA" AS 5
21: READ #5;XX$(I%):I%=I%+1:GOTO 21
22: IF I%>0 THEN I%=I%-1:GOTO 23 ELSE PRINT HC$;"Cannot Find Instdata":stop
23: IF LEFT$(XX$(J%),1)="!" THEN GOTO 24
E1: PRINT HC$;"Cannot Find Password":STOP
24: IF PW$=RIGHT$(XX$(J%),LEN(XX$(J%))-19) THEN UF$=MID$(XX$(J%),10,10)+".ONE":\
UN$=MID$(XX$(J%),2,8):UR%=J%:J%=J%+1:GOTO PC1 ELSE J%=J%+1: IF J%>I% THEN\
GOTO E1 ELSE GOTO 23
PC1: IF J%>I% THEN PW$="":GOTO 12 REM instdata used only for pswrds
IF LEFT$(XX$(J%),1)="!" THEN J%=J%+1:GOTO PC1
IF LEFT$(XX$(J%),1)<>"@" THEN GOTO LI1 REM PCS%=0 or pw$="" >> no paper defaults