text
stringlengths
7
5.36M
start: a = INP(&H201) IF (a AND 32) = 0 THEN PRINT "button 1" IF (a AND 16) = 0 THEN PRINT "button 2" GOTO start
10 REM Racecar--initial screen. 100 DEFINT A-Z:SCREEN 0,0:COLOR 7,0,0:WIDTH 40:LOCATE ,,0:CLS:KEY OFF 120 TRKWIDTH=9:TRKPOS=15 150 FOR I=1 TO 23:LOCATE 24,TRKPOS: PRINT "]]" SPC(TRKWIDTH) "[[":NEXT I 320 END 
Attribute VB_Name = "modRecordProc" Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long) Private f As Long Private o As Long Function RECORDPROC1(ByVal handle As Long, ByVal buffer As Long, ByVal length As Long, ByVal user As Long) As Long 'CALLBACK ...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =0 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =13800 DatasheetFontHei...
10 REM Fuck You Github in BASIC 20 PRINT "Fuck You Github"
10 MODE 1 20 ?"AAA111":?"BBB222":?"CCC333" 30 S1%=&9000 40 S2%=0 45 S0%=0 50 CALL &8000,S1%,0,0,6,24 60 CALL &8006,@s2% 70 CALL &8000,s2%,6,0,6,24 71 CALL &8006,@s0% 75 CALL &8000,s0%,12,0,6,24 80 CALL &8003,S1%,50,50 100 X=10:Y=10 110 GOTO 270 200 X2=X:Y2=Y 210 A$=UPPER$(INKEY$) 220 IF A$="Z" THEN X=X-1 230 IF A$="X" ...
10 DIM A(6,5) 20 FOR I = 0 TO 6 30 FOR J = 0 TO 5 40 LET A(I,J) = I*10 + J 50 NEXT J 60 NEXT I 70 PRINT "MATRIX A" 72 MAT PRINT A; 80 MAT B = TRN(A) 90 PRINT "MATRIX B" 92 MAT PRINT B; 100 OPTION BASE 1 170 PRINT "MATRIX A" 172 MAT PRINT A; 180 MAT B = TRN(A) 190 PRINT "MATRIX B" 192 MAT PRINT B; 199 END
OPTION EXPLICIT CONST AS INTEGER N=3, BS=4 CONST AS SINGLE DELTA = 0.05 DIM SHARED AS SINGLE pX ( STATIC N ), pY ( STATIC N ) DIM SHARED AS SINGLE qX ( STATIC N ), qY ( STATIC N ) DIM SHARED AS SINGLE rX ( STATIC N ), rY ( STATIC N ) FUNCTION pointhit ( BYVAL mx AS INTEGER, BYVAL my AS INTEGER ) AS INTEGER FOR ...
!-------------------------------------------------- !- 27 October 2019 22:28:49 !- Import of : ORBIT.PRG !- From Disk : c:\users\marka\games\c64\cbmprg\cassette50reboot\orbitter.d64 !- Commodore 64 !-------------------------------------------------- 0 PRINT"{clear}":GOSUB9030:POKE54296,0:POKE53281,0:POKE54276,0:R...
10 SCREEN 9 20 RANDOMIZE TIMER 30 x% = x% + 1 40 IF x% = 640 THEN x% = 1: y% = y% + 1: f% = 0 45 f% = f% + 1 46 IF f% = 15 THEN f% = 1 50 PSET (x%, y%), f% IF y% = 330 THEN GOTO 100 60 GOTO 30 100 ax% = 200 110 ay% = 100 115 h = h + 1 120 ax% = ax% + 2 130 PSET (ax%, ay%), h 135 PSET (ax% + 1, ay%), h 14...
#PBFORMS CREATED V2.01 '------------------------------------------------------------------------------ ' The first line in this file is a PB/Forms metastatement. ' It should ALWAYS be the first line of the file. Other ' PB/Forms metastatements are placed at the beginning and ' end of "Named Blocks" of code that should ...
DECLARE SUB unscrambler () COMMON SHARED a$ COMMON SHARED p$ CLS DIM SHARED y$(1000) filetop: INPUT "File name? ", file$ IF LEN(file$) > 8 OR LEN(file$) = 0 THEN PRINT "Sorry, but your file name cannot be greater and 8 or less than 1.": PRINT "Press any key to continue...": DO WHILE INKEY$ = "": LOOP: CLS : GOTO fil...
REM @english REM OTHER CONTRIBUTIONS PRIME NUMBERS (2) REM REM This small example has been taken and adapted by [[https://www.facebook.com/groups/retroprogramming/posts/793835291296728/|RetroProgramming Italia]]. REM REM @italian REM VARI ALTRI CONTRIBUTI NUMERI PRIMI (2) REM REM Questo piccolo esempio è stato...
10 print"{clear}" 20 print")))" 30 print"000<" 40 print")))" 45 for t=1 to 100:next 50 print"{home}" 60 print"(((" 70 print"000<" 80 print"(((" 85 for i=1 to 50:next 90 goto 10
'GPaintBx - a routine to paint a box region in a specified color ' Actually it replaces a specified color with another specified ' color, everywhere within the specified region. 'Copyright 1990, Brian C. Giedt DEFINT A-Z '$INCLUDE: 'GWDecl.BAS' '$INCLUDE: 'Common.GW' SUB GPaintBox (Col1, Line1,...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault TabularCharSet =178 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =13920 D...
5 a=2 10 screen a: rem ce 86 20 pset a,a,a: rem ce 87 30 rect a,a,a,a,a: rem ce 8a 40 line a,a,a,a,a: rem ce 88 50 frame a,a,a,a,a: rem ce 89 60 char a,a,a,"a": rem ce 8b 70 mouse a: rem ce 8c 80 a=mx:a=my:a=mb: rem ce 8e, ce 8f, ce 90 90 vpoke a,a,a: rem ce 84 100 a=vpeek(a,a): rem ce 8d 110 dos: rem ce 81 ...
10 'FILE NAME: SIMPSON.BAS 20 'LANGUAGE: BASIC 30 'COMPILER: Microsoft GW-BASIC Version 3.20 40 'STATUS: Compiles and runs correctly 50 ' 60 '************************************************************************** 70 ' Composite Simpson's Rule - Algorithm 4.1 80 '********************************...
1 LET A = 1 2 PRINT A 3 PRINT "HELLO!"
Attribute VB_Name = "STAT_HISTOGRAM_RANK_LIBR" Option Explicit 'Requires that all variables to be declared explicitly. Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the 'default first index of arrays. '*************************************************************...
10 REM BARNSLEY FERN FOR MSX-BASIC 20 SCREEN 2: COLOR 2,0,0: CLS 30 X=0: Y=0 40 P=RND(1)*100 50 IF P<=1 THEN NX=0: NY=0.16*Y: GOTO 90 60 IF P<=8 THEN NX=0.2*X-0.26*Y: NY=0.23*X+0.22*Y+1.6: GOTO 90 70 IF P<=15 THEN NX=-0.15*X+0.28*Y: NY=0.26*X+0.24*Y+0.44: GOTO 90 80 NX=0.85*X+0.04*Y: NY=-0.04*X+0.85*Y+1.6 90 X=...
10 DIM A(7) 20 SCREEN 2,1 30 SPRITE$(2)=CHR$(192)+CHR$(128)+CHR$(128)+CHR$(192) 35 SPRITE$(3)=CHR$(48)+CHR$(16)+CHR$(16)+CHR$(48) 40 FOR X=0 TO 140 STEP 20 50 FOR Y=0 TO 140 STEP 20 60 LINE(X,Y)-(X+20,Y+20),,B 70 NEXT Y,X 80 X=10:Y=10:I=7:J=0 90 PUT SPRITE 2,(X-4,Y-5),15,2 95 PUT SPRITE 3,(X-4,Y-5)...
10 rem Put PETSCII text at screen coords 20 print "{clear}{home}{right}{right}{down}{down}{down}{down}{cyan}press keys: q,a,o,p{white}" 30 rem init vars + set initial position 40 let col=20 : let row=10 : let a=0 45 rem the screen 'map' 50 ?"" 51 ?" ###-##########...
1 %TITLE "Cycle Count Map Report" %SBTTL "IC_RPRT_CYCLE" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the i...
Attribute VB_Name = "modHook" Option Explicit ' Purpose : stretchblt with mouse wheel to zoom based on two different sources: ' 1. stretchblt method source: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=39776&lngWId=1 ' 2. wheel mouse hook: http://www.vbforums.com/showth...
10 PRINT "PROGRAM FILE 123: EXCEPTION - UNDERFLOW ON VALUE OF" 20 PRINT " EXP FUNCTION." 30 PRINT " ANSI STANDARD 8.4, 8.6" 40 PRINT 50 PRINT "SECTION 123.1: EXCEPTION - UNDERFLOW ON VALUE OF" 60 PRINT " EXP FUNCTION." 70 PRINT 80 PRINT "THE OBJECT OF THIS TEST IS TO SEE WHETHER THE PROCESSOR" 90 PRINT...
0 o=1:w=255:goto10 1 forj=1to256:fori=1024to2023:pokei,(peek(i)+o)andw:next:next:return 2 forj=1to128:fori=1024to2023:pokei,peek(i)+o:next:next:return 3 forj=1to256:fori=1024to2023:pokei,(peek(i)+1)and255:next:next:return 4 forj=1to128:fori=1024to2023:pokei,peek(i)+1:next:next:return 10 print"waehle test:" 12 pri...
10 LET x = 3 20 PRINT x + 4
FUNCTION Download$ (url$, file$, timelimit) STATIC 'as seen on http://www.qb64.org/wiki/Downloading_Files 'adapted for use with InForm DIM theClient AS LONG, l AS LONG DIM prevUrl$, prevUrl2$, url2$, x AS LONG DIM e$, url3$, x$, t!, a2$, a$, i AS LONG DIM i2 AS LONG, i3 AS LONG, d$, fh AS LONG ...
10 PRINT TAB(33);"TOWERS" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 90 PRINT 100 REM*** INITIALIZE 110 DIM T(7,3) 120 E=0 130 FOR D=1 TO 7 140 FOR N=1 TO 3 150 T(D,N)=0 160 NEXT N 170 NEXT D 180 PRINT "TOWERS OF HANOI PUZZLE.": PRINT 200 PRINT "YOU MUST TRANSFER THE DISKS FROM T...
'$INCLUDE: 'laserpak.dec' ' Parameter List: GRAPHS.BAS '----------------------------------------------------------------------------- '' cpi! - character spacing, in characters per inch '' gridhigh! - height of grid, in inches '' gridwide! - width of grid, in inches '' inc! - distance between majo...
SUB MAIN DIM I AS INTEGER I=1 REPEAT PRINT I I=I+1 UNTIL I=10 PRINT "Finished" END SUB
DIM S$(1:64) DIM SEAS(1:32,1:64) '========================Read in all the data file names CLS '=========================Start of program to print stats OPEN "C:\FB\NFL.REC" AS 2 LEN=256 'CALL FLD1(S$()) CLS FOR TM=1 TO 32 CALL FLD1(S$()) GET #2,TM FOR M=1 TO 64 SEAS(TM,M)=0 NEXT FOR M=1 TO...
1 ' ADDPLA/BAS 2 ' This will add the ML player 3 ' routine to Musica files, 4 ' whether or not it already 5 ' exists. It won't hurt if 6 ' it already has one. Used 7 ' to make Musica files into 8 ' stand-alone executable. 9 ' By: Wm. A. Van Nest 10 ' 76703,467 11 CLS:PRINT"This will add the player rout...
10 REM Read Text 20 DIM A(40); L=CH"t" 25 GOSUB f 30 FOR J=1 TO 20; GOSUB r 40 FPRINT VAL A 50 NEXT J 60 END 500fREM point Q to text 510 Q=?18*256 520 DO Q=Q+1 530 UNTIL ?Q=#D AND Q?3=L 540 Q=Q+4; RETURN 550* 600rREM read next entry into A 605 REM changes: A,Q,R 610 R=-1 620 DO ...
10 suma=0 15 num=0 20 do while num>=0 23 suma=suma+num 25 input "ingrese un numero: ";num 35 loop 40 print "la suma total es :";suma
M = 12011 X1 = 6251 X2 = 9234 FOR K = 1 TO 999 A = (K * M + X2) / X1 IF A = INT(A) THEN 1000 NEXT K 1000 PRINT A
10 MEMORY 25999 20 dir=42540:FOR star=0 TO 40 30 POKE dir+star*2,RND*200 40 POKE dir+star*2+1,RND*80 50 NEXT 60 DEFINT A-Z: CALL &6B78:' install RSX 70 |PRINTSPALL,0,1,0:|AUTOALL,1:MODE 0 80 ON BREAK GOSUB 810 90 CALL &BC02:'restaura paleta por defecto 100 INK 0,0:BORDER 1: vidas=3: puntos=0 110 CLS: |STARS,0,10,4...
Attribute VB_Name = "FINAN_ASSET_MOMENTS_DAILY_LIBR" Option Explicit 'Requires that all variables to be declared explicitly. Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the 'default first index of arrays. '*************************************************...
REM "----------------" REM "Area of a square" REM "----------------" CLS INPUT "Enter length"; l! a! = l! ^ 2 PRINT "The area of square is"; a! END
10 COLOR 15,0,0:SCREEN 5 15 F$="SAMPLE.P5" 20 VDP(1)=VDP(1) AND &HBF 25 VDP(9)=VDP(9) OR &H20 30 BLOAD F$+"L",S,30336! 35 COLOR=RESTORE 40 BLOAD F$+"0",S 45 VDP(10)=VDP(10) AND &H7F 50 VDP(1)=VDP(1) OR &H40 55 K$=INPUT$(1) 
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ViewsAllowed =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =3960 DatasheetFontHeight =11 Item...
CLS FOR prime = 10 TO 999 LET x = 0 FOR a = 2 TO (INT(prime / 2) + 1) IF x <> 1 AND prime / a = INT(prime / a) THEN LET x = 1 NEXT a IF x <> 1 THEN IF prime > 100 THEN LET h = INT(prime / 100) LET t = INT((prime - (h * 100)) / 10) LET o = prime - ((h * 100) + (t * 10)) LET prime2 = (o * 100) + (t * 10) + h ...
14 GRAPHICS 8+16 : R. The +16 eliminates text window. 15 COLOR 1 : R. And set the pixel drawing color. 32 SETCOLOR 4,0,0: R. Border black. 33 SETCOLOR 2,0,15: R. Background white 35 R. Note that Atari doesn't have color map. The drawn pixel 36 R. color is set by color register. Here, set it to black: 37 SETCOLOR 1,0...
CLS SCREEN 9 top: IF INKEY$ = "q" OR INKEY$ = "Q" THEN END RANDOMIZE TIMER r = INT(RND * 1000) + 0 a = INT(RND * 640) + 0 b = INT(RND * 640) + 0 c = INT(RND * 345) + 0 d = INT(RND * 345) + 0 cc = INT(RND * 16) + 0 ss = INT(RND * 30) + 0 IF r < 500 THEN GOTO one IF r > 499 THEN GOTO two one: IF a < b THEN GOTO ab IF b ...
0->Z Menu("SELECT DIFFICULTY:","SUPER EASY",0,"VERY HARD",2) Lbl 0 1->Z Lbl 2 0->A 0->B 0->C 0->D 0->E 0->F 0->G 0->H 0->J AxesOff ClrDraw ClrHome Text(1,15,"WELCOME TO TI-TOE!") Text(7,15,"----------------") Text(15,30,"CODED BY") Text(25,15,"DEREK STEINMOELLER") Text(35,20,"DECEMBER OF 1999") Te...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =2 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =10230 DatasheetFontHeight =11...
REM File: .bas REM Data: REM Programmer: Yuriy Lomako REM Description: REM ------------------------------------------------------------------- CLS m = 4 x = 6 s = m + x PRINT "m = ", m PRINT "x = ", x PRINT "s = m + x = 4 + 6 = ", s
'Serial Cable/Null Modem Chat By Robert Shoemate!!! 'Must Have Serial Cable Attached to both computers to Work. 'Press T to talk and Ctrl-Break to end '!!!!<Change Com2 to com1 or whatever port Serial Cable is on OPEN "COM2:19200,N,8,1,CD0,CS0,DS0,OP0,RS,TB2048,RB2048" FOR RANDOM AS #1 DO PRINT #1, ...
# BAS6 package for MODFLOW-2005, generated by Flopy. FREE STOPERROR 10 OPEN/CLOSE ref\ibound_layer_1.ref 1 (700I10) -1 ibound_layer_0 1E+30 OPEN/CLOSE ref\strt_layer_1.ref 1 (700E15.6) -1 strt_layer_0
' Zadanie 2 ' świecenie LEDem przy trzymaniu naciśniętego przycisku $regfile = "m8def.dat" $Crystal=4000000 $hwstack=40 $swstack=16 $framesize=32 Config Portd.5 = Output 'wyjście Config Portb.7 = Input Do If Pinb.7 = 1 Then Portd.5 = 1 ' jeżeli jest naciśnięty przycisk t...
SCREEN 7 CLS '$DYNAMIC KEY OFF nm = 1 PLAY "MBMNL3O1GL6O2DL10CO1BAO2L3GO1MSL15GGL5G" COLOR 3 LOCATE 1, 12 PRINT CHR$(201) + STRING$(14, 205) + CHR$(187) LOCATE 2, 12 PRINT CHR$(186) + " " + CHR$(186) LOCATE 3, 12 PRINT CHR$(200) + STRING$(14, 205) + CHR$(188) WHILE INKEY$ = "" k$ = "SPACE INV...
Disp "FUNC" Disp "0 NEG" Disp "1 ADD" Disp "2 SUB" Disp "3 MUL" Disp "4 DIV" Input x If X=0 Then Goto NE Else If X=1 Then Goto AD Else If X=2 Then Goto SU Else If X=3 Goto MU Else If X=4 Then Goto DI Else Goto ER Lbl ER Disp "ERROR" Lbl RT Return Lbl NE (-1*A)-->A Goto RT Lbl AD A-->X B-->Y (X+Y)-->Z Z-->A C-->B D-...
NAME results2/lp_instances/lp_0026.mps FREEIEEE XU C0000000 R0000000 7042H5x76Pi0 XU C0000001 R0000002 804SC6H8dTj1 XU C0000003 R0000003 L+3Qmf5Z0xn8 XU C0000007 R0000004 u+3Fp9009*re XU C0000008 R0000005 BZ3NFflb4gF6 XU C0000009 R0000006 ...
$crystal = 10000000 $regfile = "2313def.dat" Config Portb = Output Do Portb = Not Portb Wait 1 Loop
1 %TITLE "Data Entry Testing Function" %SBTTL "FUNC_TESTENTRY" %IDENT "V3.6a Calico" FUNCTION LONG FUNC_TESTENTRY(CDD_WINDOW_CDD SMG_WINDOW, & STRING TOTEST, RETURNED, SYSTEM, LONG FLD, STRING VARNAM, & DESCRIP, LONG WINDOWNUM) ! ! COPYRIGHT (C) 1988 BY ! Computer Management Center, Inc. ! Idaho Falls, Ida...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =0 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =10800 DatasheetFontHei...
' Michal Wallace ' Four LEtter Words Base$ = "" Word$ = "" Done$ = "" INPUT "String: ", Base$ Base$ = Base$ + " " FOR A = 1 TO LEN(Base$) M$ = MID$(Base$, A, 1) IF M$ = " " THEN IF LEN(Word$) = 4 THEN Done$ = Done$ + "****" + " " ELSE Done$ = Done$ + Word$ + " " END IF Word$ = "" ELSE...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DateGrouping =1 GridY =10 Width =6462 ItemSuffix =141 Left =1500 Top =240 RecSrcDt = Begin 0xe9d140bccedae140 End RecordSource ="Report-Records" HelpFile ="SportsAdmin.chm" Pr...
REM Joshua Hipple - Project 10.10 REM Output 10 random numbers between 1 and 100 CLS FOR COUNT = 1 TO 10 GOSUB GenerateNumber GOSUB PrintNumber NEXT COUNT END REM ** GenerateNumber ** REM ** Generate random number between 1 and 100 ** GenerateNumber: LET RandomNumber = INT(RND * 100 + 1) RE...
Attribute VB_Name = "CodeREGRESS" ' (c) Copyright 1995-2023 by John J. Donovan Option Explicit Sub RegressGetStats(tData() As Double, n As Integer, np As Integer, mean As Double, Std As Double) ' A vector of data (tdata) is received which is size np and has n data points. ' The mean (mean) and second moment (std...
Operation =1 Option =0 Begin InputTables Name ="dbo_ContactGeneral" End Begin OutputColumns Expression ="dbo_ContactGeneral.CompName" Expression ="dbo_ContactGeneral.SalesRepID" Expression ="dbo_ContactGeneral.IsClient" Expression ="dbo_ContactGeneral.IsVendor" Expression ="dbo_ContactGeneral.I...
10 COLOR 1,15,4:SCREEN 2:Z=VDP(7) 20 SCREEN 0:PRINT Z 
REM --------- EFFEMERIDI Pianeti ------------ ' SCREEN 9: PALETTE 0, 1: COLOR 14 DEFDBL A-H, J, L-Z pi# = 4 * ATN(1#): rad# = pi# / 180: lim = 10: ps = 2 WINDOW (0, lim)-(lim, 0): VIEW SCREEN (15, 15)-(625, 333), , 12: 'Viewport ' DIM c(20) AS DOUBLE DIM z(8, 6, 3) AS ...
5 base=2*4096:poke 53272,peek(53272) or 8:rem put bit map at 8192 10 poke 53265,peek(53265) or 32:rem enter bit map mode 20 for i=base to base+7999:poke i,0:next:rem clear bit 30 for i=1024 to 2023:poke i,3:next:rem set color to cyan and black 50 for x=0 to 319 step .5:rem wave will fill the screen 60 y=int(90+80*...
10 MEMORY &3000-1 30 LOAD"BOVR.BIN" 35 CALL &3000 40 |LARGE 50 |CLS 60 FOR y%=0 TO 2047 70 |POKE,y%,&ff 80 NEXT y% 81 FOR y%=16384 TO 16384+2047 82 |POKE,y%,&ff 83 NEXT y% 90 |POKE,5000,&ff 100 |POKE,5000+2048,&ff 999 IF INKEY$="" THEN 999 1000 |STD 1010 END 
Attribute VB_Name = "MOD_Activities" Option Explicit Option Compare Text Enum enmActivityFormat Video = 0 Application = 1 Image = 2 SWF = 3 Url = 4 HTML = 5 End Enum Enum enmActivityTarget DefaultWebsite = 0 Installation = 1 MenuItem = 2 PreApplication = 3 S...
Operation =1 Option =2 Begin InputTables Name ="tbl_Target_Species" Name ="tbl_Target_Areas" Name ="tlu_NCPN_Plants" End Begin OutputColumns Alias ="Park" Expression ="tbl_Target_Species.Park_Code" Alias ="TgtYear" Expression ="tbl_Target_Species.Target_Year" Expression ="tbl_Target_Spe...
1 a% = 10 2 b% = (a% - 5) * 2 3 c% = a% + b% 4 IF c% < 10 THEN GOSUB 2 5 STOP
DEFINT A-Z '$INCLUDE: 'engine.bi' '$INCLUDE: 'directqb.bi' '$INCLUDE: 'tiles.bi' '$INCLUDE: 'scores.bi' DECLARE SUB DrawScreen () '$STATIC '--- Private Routines --- DECLARE SUB DrawNumber (digits, x, y, n&) ON ERROR GOTO ErrorHandler DIM SHARED Scoreboard&, Scoredigit&, boardx, boardy DIM SHARED loadin...
'********** DEFFN.BAS - a collection of some useful DEF FN-style functions 'Copyright (c) 1989 Ethan Winer 'This file contains a variety of useful functions and subroutines in the 'form of DEF FN-style functions. Use them as is, or modify them to suit 'your program's requirements. DEFINT A-Z '$INCLUDE: 'PDQDECL.B...
1 %TITLE "Model Master Maintenance" %SBTTL "MO_MAST_MODEL" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1991 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the inclu...
!-------------------------------------------------- !- Saturday, May 20, 2017 1:34:51 AM !- Import of : !- c:\src\zelch128\extras\gam.bagels.prg !- Unknown Machine !-------------------------------------------------- 10 REM GAME: BAGELS :4-V1.0 20 REM BY VINCE MILLS 30 REM COPYRIGHT OCT 1979 - PERMISSION 40 RE...
10 REM RasterMan example 4 20 REM 30 REM ** (c) 2017 Stephen A Harrison ** 40 : 50 ON ERROR REPORT:PRINT" at line ";ERL:END 60 : 70 targetver=0.21 80 : 90 SYS"RasterMan_Version" TO ver:ver=ver/100 100 IF ver<targetver OR ver>targetver THEN ERROR 255,"Incorrect version of RasterMan,...
10 LET Z = -2.0E-5
10 DEFINT N,I:DEF FNF(Z)=Z*SIN(Z) 20 INPUT"Порядок интегрирования=";N:DIM X[N],H[N] 40 IF N=2 THEN RESTORE 160 50 IF N=3 THEN RESTORE 170 60 IF N=4 THEN RESTORE 180 70 IF N=5 THEN RESTORE 190 80 FOR I=1 TO N:READ X[I]:NEXT 90 IF N=2 THEN RESTORE 200 100 IF N=3 THEN RESTORE 210 110 IF N=4 THEN RESTORE 220 120 ...
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS 5...
* ENCODING=ISO-8859-1 NAME instances/miplib3/khb05250.pre.mps.gz Iterations 126 Rows 100 Cols 1324 XL I.SUPW.1 SUP XL I.SUPW.2 W.1 XL I.SUPW.3 W.2 XL I.SUPW.4 W.3 XL I.SUPW.6 W.4 XL I.SUPW.7 W.5 XL I.SUPW.8 W.6 XL I.SUPW.9 W.7 XL I.SUP...
10 a=3 20 dim b(4) 30 b(a)=345 40 print b(a) 50 print b(3)
Attribute VB_Name = "Module1" Option Explicit Public GameDir As String Public cache As String Public rundefclient As Boolean Public customclient As String Public othpath As Boolean Public useIP As String Public useName As String Public usePort As String Public IPlist As String Public isEdit As Boolean Publi...
REM $INCLUDE: 'x86.bi' DECLARE SUB KeyHelp () DECLARE SUB IntHelp () DECLARE SUB EditHelp () DECLARE SUB EnvHelp () DECLARE SUB Print24 (X$) SUB EditHelp LOCATE 3, 30 PRINT "Edit " LOCATE 4, 32 PRINT "Commands " LOCATE 5, 32 PRINT " " LOCATE 6, 32 PRINT "C Change " LOCATE 7, 32 PRINT "D ...
// Palette example code, by Bob Rost // Allows you to clear palette, or load an example palette clear_palette: set x 0 set $2006 $3f set $2006 0 clear_palette_1: set $2007 0 inc x if x <> 32 branchto clear_palette_1 return load_palette: set x 0 set $2006 $3f set $2006 $00 load_palette_1: set $2007 [p...
10 SCREEN 128 20 TI=0 30 FOR I=0 TO 500:XP=RND(1)*300+10:YP=RND(1)*180+10 35 CC=RND(1)*14+2:XR=RND(1)*120+2::YR=RND(1)*120+2 38 GOSUB 60000:NEXT 40 RECT 0,0,319,199,1:PRINT "TIME:";TI:END 59990 REM ********************************************** 59991 REM * ELLIPSE ROUTINE 59992 REM * XP,YP: CENTER ...
Operation =1 Option =0 Begin InputTables Name ="dbo_T_StatusRecord" Name ="dbo_M_MainteItem" End Begin OutputColumns Expression ="dbo_T_StatusRecord.DeviceID" Expression ="dbo_T_StatusRecord.RecordDate" Expression ="dbo_T_StatusRecord.CategoryID" Expression ="dbo_T_StatusRecord.ItemID" Expr...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault ScrollBars =2 GridX =5 GridY =5 Width =10110 ItemSuffix =370 Left =2580 Top =3660 Right =14475 Bottom =6615 RecSrcDt = Begin 0x9c95ee73cb83e240 End Reco...
dbMemo "SQL" ="SELECT DISTINCT Unit_Code, Visit_Year\015\012FROM Transect_Select_SpeciesCover\015" "\012ORDER BY Unit_Code, Visit_Year;\015\012" dbMemo "Connect" ="" dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbBoolean "OrderByOn" ="0" dbByte "Orientation" ="0" dbByte "DefaultView" ="2" dbBinar...
LET twoAgo = 0; LET oneAgo = 1; PRINT "Fibonacci sequence: "; PRINT twoAgo + " "; PRINT oneAgo + " "; FOR i = 1 TO 20; LET current = twoAgo + oneAgo; PRINT current + " "; LET twoAgo = oneAgo; LET oneAgo = current; LET frequencyNumber = 100 + current; BEEPW frequencyNumber, 30; NEXT ...
CLS INPUT "Enter an integer number"; N! s$ = STR$(N!) FOR i = 1 TO LEN(s$) c$ = MID$(s$, i, 1) a = ASC(c$) IF a >= 48 AND a <= 57 THEN c = c + 1 END IF NEXT i PRINT c IF LEN(s$) - 1 = c THEN PRINT "Integer" ELSE PRINT "Not Integer" END IF END
CLS SCREEN 12 SLEEP 5 DO UNTIL u$ = CHR$(27) u$ = INKEY$ IF u$ <> CHR$(27) AND u$ <> "" THEN FOR i = 51 TO 60 CIRCLE (320, 230), i, 0, u, u NEXT i END IF IF u$ = "4" THEN LET u = u + .05: IF u = 6.29 THEN LET u = u - .05 IF u$ = "6" THEN LET u = u - .05: IF u = 0 THEN LET u = u + .05 IF u$ = CHR$(27) THEN END IF u = 6....
!**************************************************************************** ! ! MODULE: DEAL ITEM INFORMATION FILE FUNCTIONS ! ! AUTHOR: STUART WILLIAM MCCONNACHIE ! ! DATE: AUGUST 2002 ! !**************************************************************************** ! ! ...
!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pour ne plus voir apparaitre ce texte, tapez 'edit autoexec.bat' dans l'invite MS-DOS et effacez les lignes suivantes : prompt [ texte$ ] $p$g type c:ben.bas
REM File: .bas REM Data: REM Programmer: Yuriy Lomako REM Description: REM ------------------------------------------------------------------- CLS INPUT "Vvedite 1 dlya zaversheija"; X WHILE X <> 1 PRINT "rabotajem dalshe" INPUT "Vvedite 1 dlya zaversheija"; X WEND
20 read name$ 22 print name$ 30 read country$ 33 print country$ 40 read age 44 print age 100 data "ivan","Poland",15,"Male"
CLS PRINT "HELLO FROM QBASIC"
10 CLEAR 41*41*5 15 ? MEM 20 DIM A$(40,40) 30 ? MEM 40 FOR X = 0 TO 40 50 FOR Y = 0 TO 40 60 A$(X,Y)=STR$(X*Y) 65 PRINT "W";X;Y;MEM 70 NEXT Y 80 NEXT X 100 FOR X = 0 TO 40 110 FOR Y = 0 TO 40 130 PRINT "R";X;Y;A$(X,Y) 160 NEXT Y 180 NEXT X
10 "EPS BEFORE SEC" 20 "GROWTH EPS" 30 "DIVIDENDS/SHARE" 40 "DIVIDENDS/EPS" 50 "EPS AFTER SEC" 60 "EPS AFTER EXTRA" 70 "BOOK VALUE" 100 "LOANS/DEPS OBJ'TIVE" 110 "LOANS/DEPOSITS" 120 "DEPOSITS REQUIRED" 130 "LOANABLE FUNDS" 140 "GOV'T SECS/DEPOSITS" 150 "CASH & GOV'T/DEPS" 160 "CAPITAL/DEPOSITS" 200 "FIXE...
' Program "DEMONLF" December 26, 1992 ' ' Copyright (c) 1992 Crescent Software ' ' This program demonstrates the procedure for calling ' subroutine NLFIT which performs a non-linear curve ' fit of X and Y data input by the user using a ' Levenberg-Marquardt algorithm. ' ' NLFIT requires a subroutine ...
'********** APRINTT.BAS - APrint demo for fixed-length strings 'Copyright (c) 1988 Ethan Winer 'IMPORTANT NOTE: To run this program you MUST start QB like this: ' ' QB APrintT /AH /L Pro - the /AH is needed because of the Huge array ' 'NOTE: This demo is implemented to prove that APrintT correctly handles ' ...
1 REM UDG Editor (R)2020 Writen by Konstantin Kosarew :-) 2 BORDER 1: PAPER 7: INK 0: BRIGHT 1: FLASH 0: CLS 10 DIM u(8, 8): DIM r(8, 8) 15 DIM b(8) 30 LET x = 1: LET y = 1: LET v$ = "": LET timer = 0 80 GO SUB 1100 90 GO SUB 630 100 PRINT AT y, x; "+" 101 LET timer=timer-(timer > 0) 105 LET a$ = INKEY$ 110 IF a$ = ""...
1 %TITLE "Product Allocation Report" %SBTTL "IC_OUTP_ALLOCATE" %IDENT "V3.6a Calico" FUNCTION LONG IC_OUTP_ALLOCATE(PD_PRODUCT_CDD PD_PRODUCT, & UTL_LOCATION_CDD UTL_LOCATION) ! ! COPYRIGHT (C) 1992 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a licens...