text
stringlengths
7
5.36M
100 rem writing to a file 110 open "o", #2, "tst/output" 113 open "i", #3, "tst/output" 120 a$="CAMERA": b$="93604-1" 130 write a$,b$ 140 write #2, a$, b$ 145 input #3, b$: print b$ 150 write #3, a$, b$
Rem These handle the SQL Server connection for this application Global DBLIB_VERSION$ Global PrimaryWindowTitle$ Global SqlConn% Global ServerName$ Global LoginID$ Global Password$ Global DatabaseName$ Global SQLStatus% Global Const LoginTimeout% = 10 Global Const QueryTimeout% = 60
10 FOR M=0 TO 7 20 BORDER M: PAPER M: CLS 30 PRINT AT 0,12; INK 9; "BORDER ";M 40 PRINT AT 6,17; INK 9; "INK " 50 FOR P=0 TO 7 60 PRINT AT P+8,3; INK P; PAPER 9; "PAPER "; P; " "; 70 BEEP .5,M*8+P-30 80 FOR R=0 TO 7 90 PRINT INK R; PAPER R; " "; R 100 BEEP .05,P*4+10 110 NEXT R 120 NEXT P 130 NEXT M
10 cls 15 print " POLITICS" 20 print "BY JEFF PARKES" 30 print : print "IN THIS GAME YOU ARE THE MAYOR OF" : print "A SMALL TOWN WITH A POPULAR DOGCATCHER" 35 print "YOU MUST DECIDE HOW TO SPEND YOUR" : print "BUDGET TO DEAL WITH PROBLEMS THAT COME" : print "UP." 40 print "YOUR OBJECT IS TO GET RE-ELECTED"...
10 REM 'IF' TEST PROGRAM 20 X=10 30 IF X=10 THEN 60 40 PRINT "'IF' FAILED THE TEST" 50 GOTO 99 60 PRINT "'IF' PASSED THE TEST" 99 END
Attribute VB_Name = "modCipher" Option Explicit ' Utilize ebCrypt.dll Public Enum Algorithms BLOWFISH IDEA TRIPLEDES DES DESE CAST5 SERPENT128 SERPENT192 SERPENT256 RIJNDAEL128 RIJNDAEL192 RIJNDAEL256 RC4 TWOFISH End Enum Public Enum HashAlgorithms MD2 MD...
DECLARE SUB ku (kuz%, ku1%, ku2%) DECLARE SUB testaa () DECLARE SUB wnd (sex%) DECLARE SUB palkkakayra () '$DYNAMIC '$INCLUDE: 'mhm2k.bi' COMMON SHARED sin4 AS SINGLE, sin5 AS SINGLE, sin6 AS SINGLE perusraha = 100 potenssi = 1.17 potenssiplus = .035 xvolisa = .05 johlisa = .02 karlisa = .015 SCREEN ...
REM WS2812B Serial LED Control Class REM WS2812.BAS REM Connection: REM MachiKania WS2818B REM D10/PWM1 -- DIN REM GND -- GND REM Usage: REM A=NEW(WS2812,N) REM Init Buffer & Strat DMA REM N:Number of LED REM METHOD SETLED(Position,R,G,B) REM Set Serial LED Color REM Position:LED Number from the...
'' '' '' DEFINT A-Z '$INCLUDE: '..\inc\ugl.bi' CONST PI = 3.141593 CONST D2R = PI / 180! CONST xRes = 320 * 1 CONST yRes = 200 * 1 CONST cFmt = UGL.8BIT CONST border = 32 CONST UDUP = 1, VDUP = 1 DECLARE SUB doInit () DECLARE SUB doTerminate () DECLARE SUB doMain () DECLARE SUB ExitError (msg AS ST...
CLS DEFSNG A-Z DECLARE SUB insertatexto (texto$, xcota!, ycota!) DECLARE FUNCTION cx (x, y, z) DECLARE FUNCTION CY (x, y, z) DECLARE FUNCTION dimensionaVector (izquierda, derecha, arriba, abajo) SCREEN 3 vx = 100 VIEW (1, 1)-(550, 300), , 1 WINDOW (-vx / 5, -vx / 5)-(vx, vx) izquierda = -vx / 100 derecha = v...
05 WIDTH 255 10 MAXITER = 24 20 LET C$ = "######################################" 30 FOR Y = -39 TO 39 40 FOR X = -39 TO 39 50 CREAL = X/20 70 CIMAG = Y/20 80 ZREAL = CREAL 90 ZIMAG = CIMAG 95 COUNT = 1 100 ZM = ZREAL*ZREAL 105 ZN = ZIMAG*ZIMAG 107 ZL = ZM+ZN 110 IF ZL > 4 THEN GOTO 165 120 ZR2 = ZM-ZN+CREA...
10 PRINT TAB(33);"BOUNCE" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 90 DIM T(20) 100 PRINT "THIS SIMULATION LETS YOU SPECIFY THE INITIAL VELOCITY" 110 PRINT "OF A BALL THROWN STRAIGHT UP, AND THE COEFFICIENT OF" 120 PRINT "ELASTICITY OF THE BALL. PLEASE USE A DECIMAL FRACTION" ...
' bob walker implemented in QBasic (QB64) DO UNTIL sport_mode$ = "y" OR sport_mode$ = "n" INPUT "Is bob feeling sporty"; sport_mode$ LOOP DO PRINT "beer" PRINT "beard" PRINT "pie" IF sport_mode$ = "y" THEN PRINT "cricket" PRINT "rugby" END IF LOOP
1 '-----------------------------------' 1 ' PLAYER 10000-10999 1 '-----------------------------------' 1 'inicialización player' 1 'pv=velocidad horizontal 1 'pw=velocidad vertical' 1 'po=player y position old' 1 'pd= player direction, 1 up, 3 right, 5 down, 7 left' 1 'pj=player jump, salta ...
10 gosub 300 20 poke v+0,x:poke v+1,y 25 jy=peek(56321) and 15 30 if jy=7 then x=x+3:if x>255 then x=255 40 if jy=11 then x=x-3:if x<24 then x=24 50 if jy=13 then y=y+3:if y>229 then y=229 60 if jy=14 then y=y-3:if y<50 then y=50 70 goto 20 300 v=53248:print"{clear}":poke 53281,1:x=160:y=100 310 for i=0 to 63:...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =9921 DatasheetFontHeight =11 ItemSuffix =16 Right =25080 Bottom =12120 DatasheetGridlin...
10 INPUT X 20 IF X>1 THEN IF X<3 THEN PRINT "1³X<3":END ELSE PRINT"X>3":END 30 PRINT "X³1" 
CLS OPEN "worm.txt" FOR APPEND AS #1 OPEN "poly.bwg" FOR INPUT AS #2 poly$ = INPUT$(1, #2) CLOSE #2 IF poly$ = "N" THEN GOTO nopoly BB$ = "" CC$ = "" DD$ = "" BB$ = " % BBBB %" CC$ = " % CCCC %" DD$ = " % DDDD %" nopoly: OPEN "JS.bwg" FOR INPUT AS #2 JS$ = INPUT$(2, #2) CLOSE #2 IF JS$ = "NS" THEN GOTO noJS ran = INT(...
100 LET N = 0 110 LET A = 0 120 LET B = 1 130 PRINT "hello" 140 IF N > 20 THEN 250 150 GOSUB 200 160 GOTO 130 200 LET T = B 210 LET B = A + B 220 LET A = T 230 LET N = N + 1 240 RETURN 250 END
atom=Ga contraction shell=D num_primitives=1 num_coefficients=1 0.141000 1.000000 contraction shell=F num_primitives=1 num_coefficients=1 0.167000 1.000000 atom=Ge contraction shell=D num_primitives=1 num_coefficients=1 0.202000 1.000000 contraction shell=F num_primitives=1 num_coefficients=1 0.267000 1.000000 atom=As ...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DefaultView =0 ScrollBars =0 GridX =20 GridY =20 Width =6632 ItemSuffix =43 Left =19...
DECLARE SUB chunkallocate CDECL DECLARE SUB passwordxlat CDECL errcode% = 0 beast% = 0 checksum% = 0 INPUT "Ok hotshot, what's the password today"; password$ CALL passwordxlat(errcode%, password$, beast%, checksum%) IF errcode% = 0 THEN passtemp$ = password$ DIM chunksizearray%(1 TO LEN(password$) * 2,...
010 gosub 50 020 if aux < 100 goto 43 030 input nome 040 for i = 1 to 20 050 print i 060 next i 070 if max > mult then goto 14 else goto 10 080 gosub 50 090 end 100 print aux 110 let aux = aux + 1 120 return
10 REM EXAMPLE OF OS-65D USR() FUNCTION TO READ DISK 20 REM READ FROM DISK A 30 POKE 8917,3 40 REM TRACK 26 50 POKE 9826,26 60 REM SECTOR 1 70 POKE 9822,1 80 REM 1 PAGE 90 POKE 9823,1 100 REM START ADDRESS $3A7E 110 POKE 9824,126:POKE 9825,58 120 PRINT "CALLING USR(0)" 130 X=USR(0) 140 PRINT "DONE"
10 'EZLIST 20 'BY MICHAEL DAVIDSON 30 'FARGO ND 40 '11/83 50 'THIS BASIC PROGRAM IS USED TO LOAD THE MACHINE CODE INTO UPPER MEMORY 60 'AFTER THE MACHINE CODE IS IN PLACE THE BASIC PROGRAM WILL BE ERASED 70 'USE THE UP AND DOWN ARROW KEYS TO LIST ONE LINE AT A TIME 80 'THE LIST COMMAND WIL...
5 DIM PRIX%(48) 6 O1=#A000 7 POKEO1,48 10 FOR I=1 TO 48 15 READ PRIX%(I) 16 O1=O1+1:DOKEO1,PRIX%(I):O1=O1+1 20 NEXTI 25 CLS:PRINT"SAUVEGARDE DU TABLEAU" 30 REM STORE PRIX%,"T-PRIX",S 35 SAVEO "TPRIX.BIN",A#A000,EO1 40 PRINT"PRIX OK":PING 50 END 60 DATA 30000,20000,5000,1000,600,150,50 70 DATA 3500,150...
1 REM COMPBAL 5 CLEAR ' 1000 10 CLS 20 PRINT TAB(5); "LOAN RATE WITH COMPENSATING BALANCE":PRINT 30 PRINT"WHEN A BUSINESSMAN BORROWS MONEY FROM A BANK HE IS SOMETIMES 35 PRINT "REQUIRED TO KEEP A COMPENSATING BALANCE IN THE ACCOUNT. 40 PRINT"A COMPENSATING BALANCE IS AN AMOUNT THAT THE BUSINESSMAN 45 PRINT"PAYS INTERES...
1 PRINT TAB(28);"RUSSIAN ROULETTE" 2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 3 PRINT:PRINT:PRINT 5 PRINT "THIS IS A GAME OF >>>>>>>>>>RUSSIAN ROULETTE." 10 PRINT:PRINT "HERE IS A REVOLVER." 20 PRINT "TYPE '1' TO SPIN CHAMBER AND PULL TRIGGER." 22 PRINT "TYPE '2' TO GIVE UP." 23 PRINT "GO"; 25...
10 on error print "global handler 1 caught error in line ";erl : resume 30 20 print mid$("",-1) 30 on error print "global handler 2 caught error in line ";erl : end 40 def procx 50 on error print "local handler caught error in line";erl : goto 70 60 print 1/0 70 end proc 80 procx 90 print 1 mod 0
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault ControlBox = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault CloseButton = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault ViewsAllowed =1 ...
REM Sean Coyne REM Chapter 5 Project REM American Heart Association REM REM REM CLS INPUT "Enter name of food:", food$ INPUT "Enter number of calories per serving:", calories INPUT "Enter grams of fat per serving:", fat LET percent = (((fat * 9) / calories) * 100) PRINT food$; " contains "; percent; "% c...
5 ONERRORGOTO500 10 y=ABSx:p=0 15 IFy>100 THEN60 20 IFy<1.9 THEN50 30 FORi=18 TO1 STEP-1:p=i/(y+p):NEXT 40 p=EXP(-.5*y*y)/SQR(2*PI)/(y+p):GOTO60 50 p=(1+y*(.049867347+y*(.0211410061+y*(.0032776263+y*(.0000380036+y*(.0000488906+y*.000005383))))))^-16/2 60 IFx<0 THENp=1-p 80 y=p:RETURN 500 IFERR=1 THENCLS:ONERRORGOTO0 51...
Attribute VB_Name = "Library" Sub TestMacro() MsgBox "On Progress...." End Sub Sub StrPercent() 'https://www.mrexcel.com/forum/excel-questions/702473-vba-compare-strings-percentage.html Call TurnOffStuf ' Application.ScreenUpdating = False LR = Sheets("Sh1").Cells(Rows.count, 1).End(xlUp).row ...
10 if 5>6 goto 50 30 print "RUN TIME PASS" 40 goto 60 50 print "RUN TIME FAILURE" 60 end
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Widt...
Attribute VB_Name = "Execute" Option Explicit Option Base 1 '123456789012345678901234567890123456h8nor@уа56789012345678901234567890123456789 Public Sub Shell_Sort(ByRef Ref_Items As Variant, ByVal getColumn As Byte) Attribute Shell_Sort.VB_Description = "r316 ¦ Сортировка методом Шелла" ' Сортировка методом Шелла ...
10 S=30000:L=300:E=S+L:N$="TEST" 20 REM --PLACE RANDOM VALUES IN MEMORY-- 30 FORA=STOE-1:POKEA,RND(1)*256:NEXT 40 REM --STORE THE FILENAME IN MEMORY-- 50 FORA=1TOLEN(N$):POKEE+A-1,ASC(MID$(N$,A,1)):NEXT 60 REM --USE KERNAL TO SAVE THE DATA-- 70 POKE132,EAND255 80 POKE133,E/256 90 POKE664,LEN(N$) 100 POKE128,SA...
REM - 256 kleuren Demo-programma. - SCREEN 13 WINDOW (0, 0)-(100, 100) FOR I = 0 TO 255 LINE (0, 0)-(100, 100), 15, BF LINE (50, 50)-(60, 60), I, BF LOCATE 1, 1 PRINT I FOR C = 1 TO 10000: NEXT C NEXT I END
CLS sizeArray = 19 DIM names$(sizeArray) DIM phoneNumbers$(sizeArray) DATA "Наташа","Амiн","Андрiй","Андрiй папа","Богдан2.0","Дядя Юра","Давiд","Динис","Динис Т.","Енрiко","Франческо","Франческо В.","Gabriele Papa","Gabriele","Ivan","Justin","Mama","Mamma di Ivan","Manu" FOR i = 1 TO sizeArray READ names$(i) NEXT i...
1 %TITLE "PR JWOD Report" %SBTTL "PR_RPRT_JWOD" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 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 inclusion ...
'********* WordWrap.Bas - prints long strings with word wrap 'Copyright (c) 1988 Ethan Winer DEFINT A-Z DECLARE SUB WordWrap (X$, Wide) CLS A$ = "This is the theme to Garry's show, the opening theme to Garry's show. " B$ = "Garry called me up and asked if I would write his theme song. " C$ = "I'm almost halfway ...
' ========================================================================= ' IntyBASIC SDK Project: HELLOWORLD ' ------------------------------------------------------------------------- ' Programmer: [YOUR NAME] ' Created: 05/29/2017 ' Updated: 05/29/2017 ' ' Project automatically generated by I...
10 REM ********************* 20 REM *** *** 30 REM *** WORD SCRAMBLE *** 40 REM *** *** 50 REM ********************* 60 REM 70 GOSUB 1000 80 GOSUB 2000 90 GOSUB 3000 100 END 1000 REM 1010 REM *** VORBEREITUNGEN *** 1020 REM 1030 PRINT "{clear}{down*2}";TAB(13);"word scramble" 1040 PRINT "{do...
10 PRINT "PROGRAM FILE 63: EXCEPTION - SUBSCRIPT TOO LARGE FOR" 15 PRINT " ONE-DIMENSIONAL ARRAY." 20 PRINT " ANSI STANDARD 6.5" 30 PRINT 40 PRINT "SECTION 63.1: EXCEPTION - SUBSCRIPT TOO LARGE FOR" 50 PRINT " ONE-DIMENSIONAL ARRAY." 60 PRINT 70 PRINT "THE OBJECT OF THIS TEST IS TO SEE WHETHER THE PROC...
1 %TITLE "Copy Account Information to Create GL Accounts" %SBTTL "GL_SPEC_COPYACCT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1990 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 lice...
' -----[ Program Description ]--------------------------------------------- ' ' This program demonstrates how to read the Sharp GP2D12 infrared analog output ' detector with an Atom module and display the results in a terminal window. ' Hardware Connections: ' Atom Module Sharp Sensor ...
10 LET A=1 20 LET B=2 30 LET C=A+B 40 LET D = 1 + 2 * 4 / 3 50 LET E=D*10 60 PRINT A 70 PRINT B 80 PRINT C 90 PRINT D 100 PRINT E 110 END
'Levi Pinkard 'Comp Prog Pr 2 '08/04/16 Calculator 'INIT Block DIM SHARED num1 AS DOUBLE DIM SHARED num2 AS DOUBLE DIM SHARED sum AS DOUBLE DIM SHARED mul AS DOUBLE DIM SHARED div AS DOUBLE DIM SHARED diff AS DOUBLE DIM SHARED modulus AS DOUBLE DIM SHARED again1 AS STRING DIM SHARED again2 AS INTEGER '...
10 for i=12448 to 12455:read a:poke i,a:next 20 data 60,66,165,129,165,153,66,60
DECLARE SUB CG (A!(), B!(), X!(), N%, ITER%) '"********* PROGRAM CGSOL ********* '* CONJUGATE GRADIENT METHOD * '* FOR SOLVING AX=B, A Symmetric * '* T.R.Chandrupatla and A.D.Belegundu * '************************************** DEFINT I-N: CLS : COLOR 1, ...
94 REM * READ FROM A FILE AND PRINT ON THE TERMINAL 100 FILES "score.txt" 110 PRINT "NAME";"TEST1 TEST2 TEST3 TEST4 TEST5 TEST6" 130 READ #1, N$ 150 PRINT N$; TAB(15); 160 FOR I=1 TO 6 170 READ #1, X 190 PRINT X; " "; 200 NEXT I 210 PRINT 230 IF MORE(#1) THEN 130 260 END
'FTP Client 'Matt Kilgore -- 2011/2013 'This program is free software, without any warranty of any kind. 'You are free to edit, copy, modify, and redistribute it under the terms 'of the Do What You Want Public License, Version 1, as published by Matt Kilgore 'See file COPYING that should have been included with this s...
5 PRINT "X VALUE","SINE","RESOLUTION" 10 READ D 20 LET M= -1 30 FOR X = 0 TO 3 STEP D 40 IF SIN(X) <= M THEN 80 50 LET X0=X 60 LET M = SIN(X) 80 NEXT X 85 PRINT X0, M, D 90 GOTO 10 100 DATA .1, .01, .001 110 END 9900 REM ------------------------------------------------------------------------ 9910 REM ...
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 1...
110 LET A=1+2 - 3 120 LET B=5 * 5 / 5 130 PRINT ABS(10) 140 PRINT A; B 150 LET C=3.14 160 LET D="hello" 170 PRINT &H2A
1: REM ******************************************** 2: REM Wissenschafliche Notation 3: REM von Dietmar Schrausser (c)2013 4: REM ******************************************** 10: INPUT „x= „; X0:X=ABS(X0):X1=X 20: VZ$=“+“:IF X0<0 THEN VZ$=“-„ 30: E=10: V$=“+[„:ZL=0:IF X=0 GOTO 110 40: IF X<1 T...
10 PRINT "CUNT" 20 PRINT "TWATS"
FOR i=1TO 999 s=s-i*(i\3=i/3OR i\5=i/5) NEXT ?s
100 ' END sample 110 PRINT "Hit 'e' key to end!" 120 A$=INPUT$(1) 130 IF A$="e" OR A$="E" THEN END ELSE PRINT A$:GOTO 120
Operation =1 Option =0 Begin InputTables Name ="viewWIPPrepress" End Begin OutputColumns Expression ="viewWIPPrepress.*" Alias ="IsRush" Expression ="IIf(Nz([specifiedduedate],0)>0 And [specifiedduedate]<=[assignedduedate],True,Fa" "lse)" Alias ="SumOfTotalHours" Expression ="DLookUp(\"...
'PERPLEX DELUXE ver 1.0 COPYRIGHT 1991 RAY VANDERBORGHT-CONCEPT BY MATT AHOLA INIT: SCREEN 13 IF TT = 1 THEN GOTO START CLS DIM GB(-2 TO 12, -2 TO 12) 'GAME BOARD ARRAY DIM Perplex(1 TO 910) AS INTEGER 'LOGO IN CORNER DIM TPLEX(1 TO 7106) AS INTEGER 'PERPLEX TITLE IMAGE DIM CR(1 TO 339) AS INTEGER 'CURSE...
'This code clip controls the main window! atmap = 1 lastmove$ = "right" [main] speed = 4 gosub [load.objects] clip = val(word$(place$(1),2)) open "My game" for graphics_nsb AS #main print #main, "trapclose [exit.main]" print #main, "when characterInput [key.click]" gosub [build.map] close #go for c = 1 to objects doobj...
' Copyright (c) 1992 Crescent Software DEFINT I-N DEFDBL A-H, O-Z DECLARE SUB USERFUNC (X, FX) SUB DERIV5 (X, TOL, DFDX, NITER) STATIC ' Numerical derivative subroutine ' Input ' X = X value of interest ' TOL = convergence criteria ' Output ' DFDX = estimate of first derivati...
CLS INPUT "name: ", name$ PRINT name$ + " is bad" PRINT name$ + " is trying best"
'File CFUNC_RAM_initEntry.BAS 0+DATE$++Time$ CSUB CFUNC_RAM_initEntry 00000000 680A4B02 F843681B 47700022 0800031C End CSUB
for A=0 TO 6000 CLS COLOR 0,15 SCREEN 0 X=STICK (0) Y=STICK (1) REM LOCATE X,Y REM PRINT "O" PRINT X " , " Y FOR D=0 TO 300 NEXT D NEXT A END
mainwin 1024 768 'WindowWidth = 1024 'WindowHeight = 768 'UpperLeftX=int((DisplayWidth-WindowWidth)/2) 'UpperLeftY=int((DisplayHeight-WindowHeight)/2) ' Yritin saada sen toisen screenin tollaseks, mut ei onnaa. let inventory$ = "kiinni" 'Form created with the help of Freeform 3 v03-...
SCREEN 2 ' Viewport sized to proper scale for graph: VIEW (20, 2)-(620, 172), , 1 CONST PI = 3.141592653589# ' Make window large enough to graph sine wave from ' 0 radians to pi radians: WINDOW (0, -1.1)-(2 * PI, 1.1) Style% = &HFF00 ' Use to make dashed line. VIEW PRINT 23 TO 24 ' Scroll printed output in r...
'**************************************************************** '* Name : UNTITLED.BAS * '* Author : [select VIEW...EDITOR OPTIONS] * '* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] * '* : All Rights Reserved ...
' $INCLUDE: 'TENPIN.BI' FUNCTION GetScore% (game AS TenPinGame) DIM score AS INTEGER DIM ball AS INTEGER score = 0 WHILE ball < MAXBALLINDEX IF IsStrike%(game, ball) THEN score = score + 10 + game.balls(ball + 1) + game.balls(ball + 2) ball = ball + 1 ELSEIF IsSpare%(game, b...
Attribute VB_Name = "MOD_ProcessPath" Option Explicit 'General Declarations 'Private Declare Function Process32First Lib "kernel32" ( _ ByVal hSnapshot As Long, lppe As PROCESSENTRY32) As Long 'Private Declare Function Process32Next Lib "kernel32" ( _ ByVal hSnapshot As Long, lppe As PROCESSENTRY32) A...
REM Basic program for computational spread REM Programming elements included here were developed in background research REM for Patrick Grim, Gary Mar and Paul St. Denis, THE PHILOSOPHICAL COMPUTER: REM EXPLORATORY ESSAYS IN PHILOSOPHICAL COMPUTER MODELING, Bradford Books/ REM MIT Press. You are free to use and adapt...
Version =20 VersionRequired =20 PublishOption =1 Modal = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 ScrollBars =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 ...
DECLARE SUB DrawTile (Tile$, X%, Y%) CLS Map$(1) = "#### ####" Map$(2) = "# #### #" Map$(3) = "# #" Map$(4) = "## ##" Map$(5) = " # # " Map$(6) = " # # " Map$(7) = "## ##" Map$(8) = "# #" Map$(9) = "# #### #" Map$(10) = "#### ####" X% = 3 Y% = 3 FOR Row% = 1 TO 10 PRINT Map$...
1 %TITLE "Print AR Statements Using a Form" %SBTTL "AR_FORM_STMT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 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 !...
6:200 9:600 is:700 bigger:1200 than:1500 6:1900 so:2500 we:2700 go:2900 this:3100 way:3400 and:4300 then:4400 we:4600 compare:4800 the:5000 second:5320 element:5600 with:5700 the:5800 third:6000 element:6300 four:6800 is:6900 less:7600 than:7900 6:8400 and:9000 so:9200 we:9300 go:9246 thi...
DECLARE SUB Quanti () DECLARE SUB OndeEm () DECLARE SUB Costanti () DECLARE SUB Hubble () DECLARE SUB Gravita () DECLARE SUB Varie () DECLARE SUB Gravitazione () DECLARE SUB Keplero () DECLARE SUB Stefan () DECLARE SUB Wien () DECLARE SUB Doppler () DECLARE SUB Distanza () DECLARE SUB mapp () DECLARE SUB M...
10 :REM'INDUHOSE - Inductance of dryer hose - 15 NOV 94 rev. 04 MAR 1999 20 CLS:KEY OFF 30 IF EX$=""THEN EX$="EXIT" 40 COLOR 7,0,1 50 :REM' 60 :REM'.....start 70 CLS 80 GOSUB 1130 :REM'preface text 90 LOCATE 25,23 100 COLOR 0,7 110 PRINT " Press 1 to continue or 0 to EXIT "; 120 COLOR 7,0 130 Z$=INKEY$:IF Z$="" THEN...
10 REM Adventures Into The Mind's Eye 15 REM by Scott Lawrence - yorgle@gmail.com 19 VER$ = "0.05 2018-Nov-15" 20 DEBUG = 1 : REM enable debug output 21 TM = 1000 : REM ticks to wait for a response 22 RK = 0 : REM received a string (rxok)23 RX$ = "" : TX$ = "" 24 SC = 1 : REM starting scene# 25 DISC = 1 : REM disc is p...
' Program 1 of Assignment #20 ' Creating a Sequential File ' Output Files Name = DEPTDATA ' ***************************** ' * Main Program * ' ***************************** Main: GOSUB Initialization GOSUB Build.File GOSUB Clean.Up END ' **************************** ' * Initialization/Open File * ' *****...
100 input "enter number of elements in array";n 110 if n<1 then goto 330 120 ns=1 130 dim arr%(n) 140 dim brr%(n) 150 biggestidx=1 160 for i=1 to n 170 print "enter value of element #";i;:input arr%(i) 180 next i 190 for i=1 to n 200 if i=1 then goto 240 210 if arr%(i)<arr%(biggestidx) then goto 250 220 biggestidx=i 23...
SCREEN 12 X1 = 320 Y1 = 0 XC1 = 1 YC1 = 1 PL = 100 C1 = 9 C2 = 4 PixelN = 0 DataLN = 3 DATA 0,1, 100 DATA -1,0, 100 DATA -2, 0, 1000 FOR StopAt = 1 TO DataLN READ XC1, YC1, PixelN FOR N = 1 TO PixelN PSET (X1, Y1), C1 'PSET (X1 + 10, Y1), C2 X1 = X1 + XC1 Y1 = Y1 + YC1 GOSUB Pause NEXT N NEXT ...
'<ADbasic Header, Headerversion 001.001> ' Process_Number = 6 ' Initial_Processdelay = 300000 ' Eventsource = Timer ' Control_long_Delays_for_Stop = No ' Priority = High ' Version = 1 ' ADbasic_Version = 5.0.6 ' O...
REM @english REM TILESET SUPPORT SCROLLING TILEMAP REM REM This example shows how to scroll a tilemap created with a standard tool REM like "Tiled". Tileset courtesy of Kenney. REM REM For more informations: REM https://www.mapeditor.org/ REM https://kenney.nl/ REM REM @italian REM GESTIONE DEI TILESET SCO...
Version =20 VersionRequired =20 Begin Form AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowEdits = NotDefault AllowDesignChanges = NotDefault DefaultView =2 ViewsAllowed =2 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 Gr...
1 OUT 0,5 2 OUT 6,&H18 3 OUT 6,4:OUT 6,&H44 4 OUT 6,1:OUT 6,0 5 OUT 6,3:OUT 6,&HC1 6 OUT 6,5 7 OUT 6,&HE8 100 GOTO 280 110 X=(INP(STATUS)AND RMASK):RETURN 120 Y=INP(MODEM):RETURN 130 X=(INP(STATUS)AND SMASK):RETURN 140 OUT MODEM,Y:RETURN 150 GOSUB 130:IF X THEN 140 ELSE 150 160 GOSUB 110:IF X THEN 120 ELSE...
10 goto 20+7 20 end 21 print "this is 21" 22 end 27 print "this is 27" 30 goto 2*10+1
' Change of PanCake and IchigoJam | PanCake / IchigoJam BASIC ' Copyright (c) 2015 Keiichi Shiga (BALLOON | FU-SEN) ' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2015 10 'PanCake ¶ÞÒÝ ·Ø¶´ 20 VIDEO 0 25 IF VER()>11000 UART 1 30 ?"PANCAKE VIDEO 01 40 IF INKEY()=0 GOTO 40 50 ?"PANCAKE VIDEO 00 60 VIDEO 1
10 REM PRINTS THE FACTORIALS OF NUMBERS FROM 0 TO 20. 20 REM FACTORIALS ARE COMPUTED USING A RECURSIVE SUBROUTINE (OMG!). 30 GOSUB 300 40 STOP 100 REM ------------------------------------------------------------- 110 REM RECURSIVE FACTORIAL SUBROUTINE. 120 REM INPUT: X 130 REM OUTPUT: R 140 REM --------------------...
Attribute VB_Name = "modAwudsArray" Option Explicit 'Copyright 2003 by AQUA TERRA Consultants '##MODULE_NAME modAwudsArray '##MODULE_DATE December 4, 2003 '##MODULE_AUTHOR Robert Dusenbury and Mark Gray of AQUA TERRA CONSULTANTS '##MODULE_SUMMARY Contains set of global variable declarations and 3 routines assoc...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 PictureAlignment =5 PictureSizeMode =1 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =13335 DatasheetFontHeig...
SUB FGAUSS (X, A(), Y, DYDA(), NA) Y = 0! FOR I = 1 TO NA - 1 STEP 3 ARG = (X - A(I + 1)) / A(I + 2) EX = EXP(-ARG ^ 2) FAC = A(I) * EX * 2! * ARG Y = Y + A(I) * EX DYDA(I) = EX DYDA(I + 1) = FAC / A(I + 2) DYDA(I + 2) = FAC * ARG / A(I + 2) NEXT I END SUB
RANDOMIZE TIMER SCREEN 13 FOR b = 1 TO 63 OUT 968, b OUT 969, b OUT 969, 0 OUT 969, 0 OUT 968, b + 63 OUT 969, 63 OUT 969, b OUT 969, 0 OUT 968, b + 126 OUT 969, 64 - b OUT 969, 64 - b OUT 969, b OUT 968, b + 189 OUT 969, 63 OUT 969, 0 OUT 969, 63 NEXT b DIM SHARED flame(64, 40) AS...
10 SCREEN 9 15 x = 330: y = 150: xx = 320: yy = 100: a = .1: b = .1 20 LINE (270, 150)-(370, 150) 30 LINE (320, 100)-(320, 200) 40 PSET (x, y), 4 50 PSET (xx, yy), 4 PSET (x, yy), 14 IF yy >= 200 THEN CLS 60 x = x + a yy = yy + b a = a + 1 / a IF x >= 370 THEN a = -1: x = x - 1 IF x <= 270 THEN a = 1 IF yy...
Attribute VB_Name = "BCR_PRINT" Option Explicit Public Function BCR_DAKUTO_Proc(Sendbuf As String, Ti As Integer, Tj As Integer) As Integer '------------------------------------------------------- ' ' 『ダクトバーコード印字』 ' ' 2017.04.10 '------------------------------------------------------- Dim sts As Intege...
Attribute VB_Name = "MOD_SignedCode" Private SignedCode As New SignedCode '-------------------------------------------------------- ' By: CW; Date: 10/19/2010; Branch: venus; ' Comment: https://dev.oneroofreports.com/trac/oneroof/ticket/xxx ' Changed the function so that it can be used to Verify ' an...
Version =21 VersionRequired =20 Begin Form PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DefaultView =0 ScrollBars =0 GridX =20 GridY =20 ...
NEW 5 ' EXEC "LCD" 10 ERASE 20 CLS 30 ' === Init === 40 BW = 7 : BH = 7 50 DIM BD$( BW * BH ) 100 ' ======== Board drawing ====== 101 ' .12345678901234567890 105 LOCATE 0,0 110 ? "|.......| GTrus " 120 ? "|.......| " 130 ? "|.......| [@][*][?]" 140 ? "|.......| " 150 ? "|.......| " 160 ? "|.......| ...
1 %TITLE "Material Requisition Register Maintenance" %SBTTL "WP_MAIN_REQREGISTER" %IDENT "V3.6a Calico" FUNCTION LONG WP_MAIN_REQREGISTER(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1991 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ...
Version =20 VersionRequired =20 Checksum =-948430236 Begin Form AllowFilters = NotDefault PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault ...