Sunday, January 22, 2012

GW-BASIC COMMANDS


Command
Usage
AUTO
This command is used to automatically generate line numbers
CLS
This command is used to clear the screen
NEW
This command is used to clear the Memory.
SAVE
This command is used to save the program on disk.
LIST
This command is used to list all or part of the program currently in memory.
LOAD
This command is used to load a program file from disk into main memory.
FILES
This command is used to display the list of files from specified drive.
RUN
This command is used to execute the program currently in memory.
EDIT
This command is used to edit a specified program line  currently in memory
DELETE
This command is used to delete a specified program line in current memory.
RENUM
This command is used to renumber the program lines  in RAM.
KILL
This command is used to delete a program from disk.
SYSTEM
This command is used to exit from GW-BASIC and return to operating system.
LLIST
This command is used to list all or part of the program currently in the memory  to the printer.

37 comments:

  1. HY MUJH YA TO PATA HA KA SAVE PROGRAM KO SAVE KAR NAY KALY USE HO TA HA PAR PROGRAM PC MAIN KASE SAVE HOTA HA

    ReplyDelete
    Replies
    1. BEENISH SAVE WITH COMPLETE PATH WITH QUTATION AND WITH .BAS

      Delete
    2. please refer programmingwithparty.blogspot.com

      Delete
  2. pls tell me if i use auto option then how can i stop it?

    ReplyDelete
  3. use Ctrl + C to stop the auto numbers...

    ReplyDelete
  4. how to use kill command in GWbasic

    ReplyDelete
  5. kill"file name"
    like this

    ReplyDelete
  6. i am not being able to delete program from memory to disk,kindly tell me complete method.plz

    ReplyDelete
  7. how can i show gw basic in ful screen??

    ReplyDelete
  8. How we get hard copy of program in gw basic.

    ReplyDelete
    Replies
    1. Attach a printer
      Write llist and place l before the print in every line of list where you are demanding to print
      Then close program

      Delete
  9. please tell me what are the three differences between command and statements???

    ReplyDelete
  10. YAR PLZ TELL ME HOW TO USE TURN ANGLE(TA) STATEMENT WITH DRAW STATEMENT IN GW-BASIC GRAPHICS

    ReplyDelete
  11. Kill Command is use to delete the file of disk

    ReplyDelete
  12. GUYZZZ koi batao agr menay pura program likh liya iskey baad mujhey program ke bich me se koi line remove krni hai to kia kru/

    ReplyDelete
  13. type...delete (line no)

    ReplyDelete
  14. how to use the LLIST and LPRINT COMMANDS

    ReplyDelete
    Replies
    1. 15 years ago i was a good programer,these is a small part of one of my program,take the idea was is posible to do,good luck
      15160 'IMPRIME CAJA DIARIA CONDENSADA
      15170 P7=14
      15180 CLS
      15190 LOCATE 10,10:PRINT "IMPRIME LIQUIDACION DIARIA CONDENSADA"
      15200 GOSUB 9560:IF N$="Q" THEN RETURN
      15210 GOSUB 9630:IF N$="Q" THEN 15200
      15220 GOSUB 9700:IF N$="Q" THEN 15210
      15230 GOSUB 9770:IF A$="Q" THEN 15220
      15240 CLS
      15250 COLOR Q2,Q1,Q3:LOCATE 2,1:PRINT "IMPRIME LIQUIDACION DIARIA DISCRIMINADA Y CONDENSADA DEL "DIA1$"-"MES1$"-"ANO1$:COLOR Q1,Q2,Q3
      15260 ARCH$="C:\VIDEO\CAJAS\"+DIA1$+MES1$+ANO1$+".RAN"
      15270 GOSUB 9290'DEF CAJA
      15280 GET #2,1
      15290 FOR S=1 TO 15:LPRINT :NEXT
      15300 T=TIMER
      15310 IF TIMER<T+5 THEN 15310
      15320 LPRINT CHR$(27);"U";"1"TAB(P7)STRING$(42,61)
      15330 LPRINT TAB(P7)"CAJA DEL DIA:"DIA1$"-"MES1$"-"ANO1$
      15340 LPRINT TAB(P7)"CAJA :"CAJA$
      15350 LPRINT TAB(P7)"IVA :"IVA$
      15360 LPRINT TAB(P7)"IB :"IB$
      15370 LPRINT TAB(P7)"CAJAESPECIAL:"CAJAESPECIAL$
      15380 LPRINT TAB(P7)"CAJAVARIOS :"CAJAVARIOS$
      15390 LPRINT TAB(P7)"CAJANOIMP :"CAJANOIMP$
      15400 CLOSE #2
      15410 ARCH$="C:\VIDEO\VENTAS\"+DIA1$+MES1$+ANO1$+".VEN"
      15420 GOSUB 9330'DEF CAJA DISCRIMINADA
      15430 LPRINT TAB(P7)STRING$(42,61)
      15440 LPRINT TAB(P7)"FACTURA DENOMINACION CANT PVP ST"
      15450 LPRINT TAB(P7)STRING$(42,61)
      15460 O=1
      15470 GET #2,O:IF MID$(EA$,1,3)="EOF" OR ASC(EA$)=0 THEN LPRINT TAB(P7)STRING$(42,61):GOSUB 13200:GOTO 15520
      15480 P$=EA$:GOSUB 7630:P$=PR$:AN=1:L=14:GOSUB 14680
      15490 W$=MID$(EW$,1,4)+MID$(EW$,6,13)
      15500 LPRINT TAB(P7)USING "\ \\ \## ##.## ###.##";W$,PR$,VAL(EC$),VAL(ED$),VAL(EE$)
      15510 O=O+1:GOTO 15470
      15520 CLOSE #2:T$=STRING$(42,45):GOSUB 1620:RETURN

      Delete
  15. hi please tell me how to print list and output as well

    ReplyDelete
  16. visit my blog you will find lots of help
    http://www.cstechz.com/gw-basic-urdu-part-2-10-class/

    ReplyDelete
  17. how to quite the load program in GWBASIC

    ReplyDelete
    Replies
    1. We can quit / exit from GW BASIC by typing "System" command.
      In DOS, we write "exit" command.
      You may check our channel to view 75 video lessons / tutorials about GWBASIC Programming.
      https://www.youtube.com/channel/UCmVuif05969gJxq7ri3IdlA

      Delete
    2. Press F4 or write load and give it a name to recognize your program

      Delete
  18. Using new command you can remove program that is already loaded in the memory....

    ReplyDelete
  19. please tell me how to get out put or hard copy of practical

    ReplyDelete
  20. DELETE 50 will delete all line numbers from line number 50 till the end of the program.

    ReplyDelete
  21. If we talk about printers first name comes in our head is Brother Printers, for latest and updated Drivers for Brother go to the Following Sites.

    solutions.brother.com/windows
    solutions.brother.com/windows
    solutions.brother.com/windows
    solutions.brother.com/windows

    ReplyDelete