text
stringlengths
7
5.36M
SUB PRINT_TAB(LONG col, LONG row, STRING strVal) LET rows$ = NUM1$(row+1) LET cols$ = NUM1$(col+1) LET out$ = ESC + "[" + rows$ + ";" + cols$ + "H" + strVal PRINT out$ END SUB
0 'OPEN"O",#1,"MERGE/BAS":FORH=0TO12:PRINTH;:PRINT#1,STR$(H+100)"0 DATA";:FORG=1TO10:Y=-G:FORX=-G TOG-1:GOSUB120:NEXT:FORY=-G TOG-1:GOSUB120:NEXT:FORX=G TO-G+1STEP-1:GOSUB120:NEXT:FORY=G TO-G+1STEP-1:GOSUB120:NEXT:NEXT:PRINT#1,CHR$(8):NEXT:END 10 WIDTH32:CLEAR1000,16384:POKE65442,48:POKE65443,49 30 HSCREEN2:POKE65432,...
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p. 10 'Mandelbrot Set, Total View 20 'Name: MANDEL 30 SCREEN 12, 0, 0, 0: CLS 40 WINDOW (-2.2, -1.4)-(1.1, 1.4) 45 COLOR 15: LOCATE 1, 1: PRINT "Mandelbrot set of quadratic system, pixel method" 50 n1 = 160: n2 = 100: ' Resolution 60 FOR i = -n1 ...
10 PRINT "HI RAMSEY" 20 PRINT "*********" 30 PRINT " : D " 40 PRINT "HEY" 50 GOTO 10
DEFINT A-Z '$DYNAMIC '$INCLUDE: 'engine.bi' '$INCLUDE: 'directqb.bi' '$INCLUDE: 'xms.bi' '$INCLUDE: 'paklib.bi' '$INCLUDE: 'plugins.bi' ON ERROR GOTO ErrorHandler '============================================================================ ErrorHandler: e = ERR ErrorHandlerSub 0 RESUME NEXT REM $S...
1 REM POKE IMAGESET DATA INTO TILE BASE 10 POKE $9F20,0:POKE $9F21,$F8:POKE $9F22,$10 20 FOR I = 0 TO 511 40 READ A:POKE $9F23,A:NEXT I 50 REM PUT THIS BACK FOR JUST TILE BASE RESULT 60 GOTO 1000 100 REM POKE TILEMAP DATA INTO MAP BASE 101 REM START AT BASE + A02 AS PER PANE DATA 110 LET C = 0 115 LET K = 0 120 REM STA...
10 COLOR 2 20 PRINT "STRICHRECHNUNG" 30 COLOR 1 40 INPUT "Zahl 1?", a% 50 COLOR 3 60 INPUT "1.Plus oder 2.Minus?", b% 70 COLOR 4 80 IF b% = 1 OR b% = 2 THEN 90 RUN plus$ 100 END 110 END IF 120 IF b% = b% OR 2 = 1 THEN 130 RUN minus$ 140 END 150 END IF 160 170 180 190 200 210 220 230 240 250 260...
10 :REM'ANTENNA 13 JAN 91 rev. 10 APR 1998 20 CLS:KEY OFF 30 IF EC$=""THEN EX$="exit" 40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$ 50 COMMON EX$,PROG$ 60 COLOR 7,0 70 UL$=STRING$(80,205) 80 U$="##,###.###" 90 V$="####.# " 100 W$="#####,###.###" 110 V#=299792458.0# :REM'speed of light in metres per second 120 :REM' ...
REM Example 4 var 9 CLS DO PRINT "Enter array size (min=3)" INPUT x LOOP WHILE x < 3 DIM arr$(x, x) FOR i = 1 TO x FOR j = 1 TO x PRINT "Elemet of char (or string)" INPUT arr$(i, j) NEXT j NEXT i REM Output on display PRINT "Array" CLS FOR i = 1 TO x FOR j = 1 TO x LOCATE i + 10, j * 10 P...
10 REM TEST THE MINM$() FUNCTION 20 MAT READ A$(3,6) 30 LET B$=MINM$(A$) 40 PRINT "MINIMUM IS "; B$ 90 DATA "TEN","FIVE","ONE","TWENTY-TWO","SEVENTEEN","MINUS NINETEEN","SEVEN" 91 DATA "ELEVEN","SIX","TWO","TWENTY-THREE","EIGHTEEN","MINUS TWENTY","EIGHT" 92 DATA "TWELVE","SEVEN","THREE","TWENTY-FOUR","NINETEEN","MINUS ...
;Project Lynxmotion Rover including Robot Arm ;Description: Rover with 6DOF Robot Arm, controlled by a PS2 remote ;Software version: V1.2 beta ;Date: 18-05-2009 ;Programmer: Jeroen Janssen (aka Xan) ; ;Hardware setup: BB2 with ATOM 28 Pro, PS2 remote (See further down for connections) ; ;NEW IN V1.2 beta ; - New Arm in...
Attribute VB_Name = "mdParty" '************************************************************** ' mdParty.bas - Library of functions to manipulate parties. ' '************************************************************** '************************************************************************** 'This program is free s...
start: PRINT "[BeFore] Press any key to show menu..." start = TIMER DO IF INKEY$ <> "" THEN GOTO menu LOOP UNTIL TIMER >= start + 3 END menu: CLS COLOR , 1 PRINT "ShiftOut - BeFore 0.3" + SPACE$(80 - 21) COLOR , 0 PRINT PRINT "This program is freely available from http://www.shiftout.com/projects/BeFore" ...
Operation =1 Option =0 Begin InputTables Name ="dbo_ItemOption" End Begin OutputColumns Expression ="dbo_ItemOption.*" End dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbByte "RecordsetType" ="0" dbBoolean "OrderByOn" ="0" dbByte "Orientation" ="0" dbByte "DefaultView" ="2" dbBinary "GUID" = ...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 ViewsAllowed =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 ...
Attribute VB_Name = "CodeInjection" ' Win32 API Declaration #If VBA7 Then Private Declare PtrSafe Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As LongPtr Private Declare PtrSafe Function VirtualAllocEx Lib "kernel32" (ByVal hPro...
DIM AS INTEGER N,M,S,I,J INPUT "N,M=";N,M DIM AS INTEGER A(N) S=0 FOR I = 0 TO M A(I) = I NEXT I DO WHILE A(0)=0 S = S + 1 PRINT S;":"; FOR I = 1 TO M PRINT A(I); " "; NEXT I PRINT J = M DO WHILE A(J)=N-M+J J = J - 1 LOOP A(J) = A(J)+1 FOR I...
OPEN "data.omg" FOR INPUT AS #1 INPUT #1, TimeTravel INPUT #1, Lives INPUT #1, BioEng INPUT #1, BioEng2 INPUT #1, BioEng3 INPUT #1, Boom INPUT #1, LowTroub INPUT #1, HighTroub INPUT #1, Idiot INPUT #1, Find INPUT #1, Erased INPUT #1, Dna$ INPUT #1, Strand$ INPUT #1, Dna1 INPUT #1, DNAo$ INPUT #1, Strando$ INPUT #1, Dna...
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 =5220 DatasheetFontHeig...
10 REM TEST OF ANALYZE COMMAND 20 PRINT "START" 30 LET B = 10 40 GOTO 90 50 PRINT B 60 LET A = B / 10 90 STOP 99 END
1 SCREEN 9 y = 30 GOSUB fan '==================================================================== DO: K$ = INKEY$ IF K$ = "w" AND y > 30 THEN CLS GOSUB fan LET y = y - 10 END IF IF K$ = "s" AND y < 330 THEN CLS GOSUB fan LET y = y + 10 END IF IF K$ = "...
5 IFPEEK(&H7CC2)=142 THEN110 8 CLEAR1,&H7CC1:CLEAR300:S=31938 9 CLS:PRINT@232,"INITIALIZING" 10 DA$="8E7D58FC0168BF0168FD7DB78E7CE1DCA99FA9FD7CF89EBABF7FFC7F7FFA39819E261534169EBABF7FFCCCFFFFED819CB726FA35167E100081872605737FFF20" 11 DB$="F481402709812027EC7F7FFF20E77D7FFF27E27F7FFF3416862017009ABDB3E4108304C810243720...
SCREEN 1 Esc$ = CHR$(27) ' Draw three boxes and paint the interior of each ' box with a different color: FOR ColorVal = 1 TO 3 LINE (X, Y)-STEP(60, 50), ColorVal, BF X = X + 61 Y = Y + 51 NEXT ColorVal LOCATE 21, 1 PRINT "Press ESC to end." PRINT "Press any other key to continue." ' Restric...
REM modo_vars REM Tests the modolus function MAIN: GOSUB mod_int GOSUB mod_dec REM Expected output REM 10 REM 2 REM 0 REM 1 mod_int: PRINTLN "Mod Int Part 1" LET #x = 10 LET #y = 2 LET #answer = x% y PRINTLN x PRINTLN y PRINTLN answer PRINTLN " " PRINTLN "Part 2" #answer = 11 %y PRINTLN answer P...
'======================================= ' Speed Racer Demo by William Yu ' Simple demonstration of a vertical ' scrolling road with a cheap imitation ' of a race car done in QuikDraw '======================================= DEFINT A-Z SCREEN 7 REDIM Sprite%(240) ' FOR a = 0 TO 158: READ Sprite%(a): NEXT ' ...
CONST DEBUG = -1 $SCREENHIDE $CONSOLE CONST PRE_PROCESS_VERSION$ = ".10" DECLARE LIBRARY "unistd" SUB getcwd(s as STRING, BYVAL l as LONG) END DECLARE '$include:'mem/mem.bi' '$include:'cmd_args/parse_args.bi' '$include:'parser/parser.bi' '$include:'objects/objects.bi' '$include:'at_commands/at_commands.bi' '$inc...
10 LET X = 0 20 LET Y = 0 30 LET N = 1 40 LET R = 3 50 LET S = 1 100 LET T = S 110 IF T <> 0 GOTO 200 120 LET R = R + 1 130 IF R = 4 THEN LET R = 0 140 IF R = 1 THEN LET S = S + 1 150 IF R = 3 THEN LET S = S + 1 160 GOTO 100 200 IF R = 0 THEN Y = Y - 1 210 IF R = 1 THEN X = X - 1 220 IF R = 2 THEN Y = Y + 1 230 IF...
REM @english REM USER-DEFINED PROCEDURES WITH GLOBAL VARIABLES (2) REM REM This example will show how global variables can be defined using "wildcards". REM REM @italian REM USARE LE PROCEDURE CON VARIABILI GLOBALI (2) REM REM Questo esempio mostrerà come definire le variabili globali usando le "wildcard". ...
#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 ...
3 CLS'Вначале очистим экран! 5 LOCATE 255,1,1 7 FOR I=1 TO 400:NEXT 10 LOCATE ,255,1 20 FOR I=1 TO 400:NEXT 30 LOCATE 1,,1 40 FOR I=1 TO 400:NEXT 50 LOCATE ,1,1 60 FOR I=1 TO 400:NEXT:GOTO 3 
$CONSOLE '$DYNAMIC TYPE LabelType name AS STRING line AS _UNSIGNED LONG END TYPE TYPE ProgramBufferType cmd AS STRING arg AS STRING ln AS STRING line AS _UNSIGNED LONG END TYPE TYPE VarType type AS STRING * 1 val AS STRING name AS STRING END TYPE TYPE RegType A AS STRING B...
REM chat CLS GOSUB 1: REM OPENING GOSUB 2: REM slogen GOSUB 3: REM main screen GOSUB 4: REM chat room 1 REM OPENING GOSUB 1000: REM background GOSUB 1500: REM clouds GOSUB 2000: REM logo GOSUB 5000: REM name GOSUB 4000: REM music SLEEP 2 RETURN 1000 SCREEN 7 COLOR 1 RETURN 1500 PRINT "" PRINT "" P...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 ViewsAllowed =1 BorderStyle =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 Gr...
CLS Loser: PRINT "Hi! My name is Bob Smith and I'll be your host for tonight so just" PRINT "sit back, relax, and enjoy the show. First of all I would like to" PRINT "extend a big thank you to Poopi Co. Foods for sponsoring this show" PRINT "and for providing the entire staff with a life supply of Poopicola" ...
10 GOSUB400:IFp>1 ORp=<0 THEN* 15 IFp=1 THENx=0:GOTO80 20 IFn=1 THENq=p:p=q/2:GOSUB"LIB0:S6410":GOSUB400:x=y*y:p=q:GOTO80 30 IFn=2 THENx=-2*LNp:GOTO80 40 GOSUB"LIB0:S6410":GOSUB400:x=y:y=x*x:x=n+SQR(2*n)*x+2/3*(y-1)+x*(y-7)/9/SQR(2*n)-2/405/n*(y*(3*y+7)-16):IFx<0 THENx=0 50 IFn>100 THEN80 60 b=x:GOSUB100:IFn<31 THENIFA...
10 REM 'OR' LOGICAL TEST PROGRAM 20 PRINT "ENTER A NUMBER FROM 1 TO 10? "; 30 INPUT A 35 IF A = -999 THEN 99 40 B= A<1 OR A>10 50 IF B<>0 THEN 80 60 PRINT A;" IS A NUMBER BETWEEN 1 AND 10" 70 GOTO 20 80 PRINT A;" IS NOT GREATER THAN 0 AND LESS THAN 11" 90 GOTO 20 99 END
DECLARE SUB Prt (S$) REM $INCLUDE: 'MOUSE.BI' REM $INCLUDE: 'INIT.BI' PBX = 1 PBY = 1 StartTime# = TIMER DO IF DrawFrame% THEN t# = TIMER 'DrawFrame% = False COLOR , 0 CLS END IF CALL MousePoll(MouseY, MouseX, L%, R%) IF L% THEN COLOR 15: LOCATE MouseY, MouseX: PRINT "█"...
Flicker.Control = 6000 SCREEN 7 RANDOMIZE TIMER GOTO main.menu intro: CLS SOUND 100, 2 SOUND 500, 1 SOUND 100, 2 SOUND 500, 25 PRINT PRINT PRINT COLOR 2 PRINT " AS39002 proudly " COLOR 4 PRINT " presents.... " SOUND 100, 2 SOUND 500, 1 SOUND 100, 2 SOUND 500, 25 CLS PRINT ...
'Declare QMIDI subroutines. DECLARE SUB LoadAndPlayMIDI (Filename$, MIDISegment%, MIDIOffset%) DECLARE SUB LoadMIDI (Filename$, MIDISegment%, MIDIOffset%) DECLARE SUB PlayMIDI (MIDISegment%, MIDIOffset%) DECLARE SUB stopmidi () DECLARE FUNCTION BytesRequired& (Filename$) DECLARE SUB DriversLoaded (SBMIDI%, SBSIM%...
'********** NOBEEP.BAS - TSR that disables the PC speaker from beeping 'Copyright (c) 1989 Crescent Software 'To have this program take as little memory as possible when resident you 'should compile and link as follows: ' ' BC nobeep /o; ' LINK /noe /nod nobeep str00256 _noval _noread, , nul, pdq DEFINT A-Z '$I...
0 HIMEM#3000 5 CLS 10 GOSUB25000 20 GOSUB12000 30 GOSUB12500 40 GOSUB13000 50 GOSUB14000 60 GOSUB15000 70 GOSUB18000 80 TEXT:CLS:END 12000 REM INTRO TYRANN 12005 POKE#26B,#10:POKE#26C,2:POKE#75,0 12020 TYRANN.HRS:CLS:PRINT 12025 N$=CHR$(27)+"JLa Reine TYRANN" 12026 PRINTSPC(19-LEN(N$)/2);N$ 12027 PRINTSP...
1 %TITLE "Account Control Maintenance" %SBTTL "CK_MAIN_CONTROLACC" %IDENT "V3.6a Calico" FUNCTION LONG CK_MAIN_CONTROLACC(CDD_WINDOW_CDD SMG_WINDOW, & LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software...
10 CLEAR 200, &H4000 20 CLS 30 LOADM "DEMO" 40 EXEC
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 ...
Version =20 VersionRequired =20 Begin Form AllowDesignChanges = NotDefault DefaultView =2 TabularFamily =107 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =14940 DatasheetFontHeight =10 ItemSuffix =21 Right =13515 Bottom =7605 DatasheetG...
B4A=true Group=Default Group ModulesStructureVersion=1 Type=Class Version=8.5 @EndOfDesignText@ Sub Class_Globals Private listAlerts As CustomListView Private listTasks As CustomListView Private listActions As CustomListView Private ItemsCounter As Int = 0 Public TasksList As List Private ActivityReference As Ac...
DECLARE SUB EraseET (ETT%) DECLARE SUB TankHit (Where$, How$) DECLARE SUB AdjField (XXYY$) DECLARE SUB KillTank (Victim%) DECLARE SUB DoInComing () DECLARE SUB GetSod () DECLARE SUB Modem (Orders$) DECLARE SUB SendBase (H$) DECLARE SUB FireLazer (Where%) DECLARE SUB FireShell (Where%) DECLARE FUNCTION Rmd! (x...
1 'Example 1 of BLOAD statement 10 DEF SEG &6000:'Set segment to &6000 20 BLOAD "PROG1", &F000:'Load at address 6000:F000 30 DIM X(100):'Declare an array space of 400 bytes 40 BLOAD "PROG2", VARPTR(X(0)), VARSEG(X(0)):'Load PROG at array space
#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 ...
Attribute VB_Name = "Module2" Option Explicit Sub CALCEXPANSION(PN2, TN2) Dim calden(71, 8) As Single Dim IND, IND2 As Integer Dim e7, e4, e8, e9, p9, T9, D9, p2, p3, a1, a2, a3, a4, a5, e1, e2, e3, e5, e6, r1, r2, r3 As Single Dim Liq, vAp, L1, L2, v1, v2, nStart2, vaPr As Single Dim filestring As String Dim...
' ******************************************************************** ' ' Fitxer....................: CLI_002.BAS ' Titol.....................: Modul per buscar clients ' ' ******************************************************************** ' ' Data inici................: 27/06/1996 ' Data de la darrera revisi¢: 20/1...
poop$ = "NONE" poop = 0 OPEN "tankwars.dat" FOR OUTPUT AS #1 FOR i = 1 TO 10 WRITE #1, poop, poop$ NEXT i CLOSE #1 SUB calc (a(), y) FOR i = 1 TO y LET a(i, 6) = a(i, 2) / a(i, 1) LET a(i, 7) = ((a(i, 2) - (a(i, 3) + a(i, 4) + a(i, 5))) + (2 * a(i, 3)) + (3 * a(i, 4)) + (4 * a(i, 5))) / a(i, 1) NEXT i END...
5 X=Y=L=DL=R=DR=SPEED=POS=TOT=TIME=Z=BACK 10 ROAD=5:FIELD=12:BUSH=4:CAR=1 20 DOWN=4096+174 40 GOSUB 2000 60 TOT=0:TIME=425:Y=TIME/12+3 70 POS=1500:X=POS/75:BACK=ROAD 80 L=16:DL=0:R=20:DR=0 100 COLOR=BACK: VLIN Y-1, Y AT X 150 CALL DOWN 160 Z = PEEK(-16336):Z=PEEK(-16336) 200 POS=POS+PDL (0)-128: IF POS<0 THEN POS=0: IF...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault NavigationButtons = NotDefault CloseButton = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 ScrollB...
1 %TITLE "Product Master" %SBTTL "IC_MAST_PRODUCT" %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 inclusi...
atom=K contraction shell=SSS num_primitives=5 num_coefficients=3 3.0720 -0.3083067 0.1894087 0.0 0.6752 0.7820711 -0.5472332 0.0 0.2545 0.4142883 -0.7576458 0.0 0.0529 0.0 0.9952157 0.0 0.0209 0.0 0.0 1.0 contraction shell=PPP num_primitives=5 num_coefficients=3 8.2330 -0.0419919 0.0 0.0 0.9526 0.5776819 0.0 0.0 0.3013...
0 CLS:CLEAR300:DIMC1,C2,CC,MC,ZZ,W(6,9),W$(6),A(9),MN$(10),I$(2):C1=RND(-(PEEK(9)*256+PEEK(10))):MC=16384:GOTO10 1 C1=1:CC=32 2 IFMID$(M$,CC,1)<>""ANDMID$(M$,CC,1)<>" "THENCC=CC-1:GOTO2 3 PRINTMID$(M$,C1,CC-C1):C1=CC+1:CC=C1+31:IFC1<=LEN(M$)THEN2 4 RETURN 5 ZZ=LEN(M$):C2=(PEEK(384)AND1)*256+PEEK(385):GOSUB1:CC=((PEEK(3...
10 REM PERFECT NUMBERS 15 REM TO CALCULATE PERFECT NUMBERS 20 INPUT N 30 IF N<6 THEN PRINT "NONE":GOTO 200 35 IF N=6 THEN PRINT "6 ONLY":GOTO 200 40 PRINT"6"; 45 FOR I=3 TO 26 46 REM LIMIT N TO 2^25*(2↑26-1) 47 LET Y=2^I-1 50 REM NEXT LOOP IS TO CHECK IF 2^I-1 IS PRIME 52 FOR L=2 TO INT(SQR(Y)) 53 IF Y/L=INT(Y/L) TH...
10 print "foo" 20 print "bar" 30 list --- foo bar 10 print "foo" 20 print "bar" 30 list
Attribute VB_Name = "modRegKeys" ' 이 모듈은 레지스트리 키를 읽고 씁니다. VB의 내부 레지스트리 ' 액세스 방법과 달리 문자열 값으로 레지스트리 키를 ' 읽고 쓸 수 있습니다. Option Explicit '--------------------------------------------------------------- '- 레지스트리 API 선언... '--------------------------------------------------------------- ' Function prototypes, constants, and ...
REM File: .bas REM Data: REM Programmer: Yuriy Lomako REM Description: REM ------------------------------------------------------------------- CLS size = 7 DIM a(size) a(1) = 4 a(2) = 5 a(3) = 888 a(4) = 1 a(5) = 4447 FOR i = 1 TO 8 PRINT "A"; i; : PRINT " = "; : PRINT a(i) NEXT i
Attribute VB_Name = "WEB_SERVICE_YAHOO_DATA_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. Public Type YAHOO_DATA_OBJ 'Written by Nico for the Ben Gra...
DECLARE SUB seconds () DECLARE SUB hours () DECLARE SUB minutes () COMMON SHARED wherehour, whereminute, wheresecond, hour, minute, second, kk CLS SCREEN 12 PLAY "MB" LET hhour = VAL(MID$(TIME$, 1, 2)) LET mminute = VAL(MID$(TIME$, 4, 5)) LET ssecond = VAL(MID$(TIME$, 7, 8)) LET u = ssecond IF hhour > 12 THEN LET hhour...
COMMON PROGRESS$, SPEED, BOOMERANG, MAX, MAN, ROOM, CASTLE, X, Y, PX, PY, FACE$, STEPS, MONEY, KEYS, ITEM$, sound$, NAME$, COUNTRY$, SAVEFILE$ SCREEN 13: CLS MAGMA = 40: FLOW = 4 'PLAY "MST200L8O5GL64<<G>>L8AL64<<A>>L8BL64<<B>>L8AL64<<A>>L8GL64<<G>>L8BL64<<B>>L8AL64<<A>>L8BL64<<>C>>L2C" 'TIME = TIMER + 1: WHILE TIMER ...
Attribute VB_Name = "FINAN_DERIV_AMER_APPROX_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. '*********************************************************...
'Project CompuRace From the C=64; Jay Cook (jay.cook@sandh.com) 'http://www.tripod.com/~jaycook/qb.htm <-- My Qbasic Web Page 'Date: Wed 6-19-96,12:30 am, thinking about 80's, and the c64 ' and Compurace came to mind, a little nostlogia(sp) ' Let me fill you in, because NOBODY has played this on the C64 'and the r...
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...
5REM SKI-RUN By ROB HEARD 10 DIM I(5),A(5),Q(10) 15 C=#B002 20 P.$12;INPUT"DO YOU NEED INSTRUCTIONS"$I 30 IF?I=CH"Y" GOTO 450 35IN."WHAT IS YOUR NAME "$Q 40 INPUT"WHAT IS YOUR SKIING SPEED 0-5(0=SLOW;5=FAST)"K 45 IF K<0 OR K>5 GOTO 40 46 K=5-K 50 P."HOW MANY TREES DO YOU THINK YOU COULD SKI AROUND "$Q"." 55...
0 CLS:PRINT:PRINTCHR$(4)CHR$(27)"N LORICIELS EST FIER DE PRESENTER :";CHR$(17) 1 DIM P(12),C(10),V$(70),O(25),O$(25),M$(25),A$(128),C$(14),X$(3),MO$(3),S(1):if no_intro! then 45 5 WAIT250:PRINTCHR$(4);CHR$(17):ZAP:GOSUB9000 6 REM COPYRIGHT LORICIELS 83 L.BENES 7 REM LE MANOIR DU DOCTEUR GENIUS 8 REM 9 FO...
1 %TITLE "Function to Enter a Note" %SBTTL "ENTR_NOTE" %IDENT "V3.6a Calico" FUNCTION STRING ENTR_NOTE(XX_VDID%, CPOS$, PROMPT$, & XSTART$, FLAG%, XFORMAT$, DEFLT$) ! ! COPYRIGHT (C) 1984 BY ! Computer Management Center, Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used an...
DECLARE SUB DOCINIT (D%) DECLARE SUB DOCOPN (F$, D%) DECLARE SUB ALARM () DECLARE SUB CHECKMARK (D%, SH%) DECLARE SUB CLIPBOARD () DECLARE SUB SHOWDOC (D%) DECLARE SUB INFOBAR (D%) DECLARE SUB CUTTEXT (D%) DECLARE SUB ORDERMARK (D%, LA%, LZ%, CA%, CZ%) DECLARE SUB NOISE () DECLARE SUB DELETETEXT (D%) DECLARE SUB PUTLIN...
* ENCODING=ISO-8859-1 NAME instances/miplib3/air04.pre.mps.gz Iterations 4221 Rows 614 Cols 7565 XL CL000001 RW000001 XL CL000002 RW000002 XL CL000003 RW000005 XL CL000006 RW000006 XL CL000007 RW000007 XL CL000008 RW000008 XL CL000010 RW000011 XL CL000011 RW000012 XL CL000012 RW00...
1 %TITLE "Product Account" %SBTTL "PD_MAIN_PRODACCT" %IDENT "V3.6a Calico" FUNCTION LONG PD_MAIN_PRODACCT(CDD_WINDOW_CDD SMG_WINDOW, & LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnis...
'_|_|_| POKE12.BAS PUBLIC DOMAIN Kurt Kuzba (11/23/1999) '_|_|_| Generate random graphic patterns in mode 12h. RANDOMIZE TIMER SCREEN 12 PRINT "Display will change at intervals." PRINT "ESC exits program." PRINT "Any other key alters display." PRINT "Hit any key to begin." WHILE INKEY$ > "": WEND WHIL...
PRINT "Alix(SenPai) - With love from Kavar Shiraz, IRAN"
_TITLE "Metatron's Cube" SCREEN 12 DIM points(13, 2) AS SINGLE COLOR 0 PSET (320, 240) GOSUB addpoints FOR fruit = 0 TO 5 PSET (320, 240) DRAW "TA" + STR$(60 * fruit) DRAW "BU90" GOSUB addpoints DRAW "BU90" GOSUB addpoints NEXT fruit COLOR 7 FOR body = 1 TO 13 CIRCLE (points(body, 1), poin...
REM Benjamin Wolf REM May 13, 2003 REM Song of Storms CLS LOCATE 12, 24: PRINT "The Legend of Zelda: The Song of Storms" DO PLAY "O3 ML T255 L8 df>d. p8 <df>d. p8 e4fefec<a4 p8" PLAY "O3 ML L8 a4defa4 p32 a p32 a4defd4" PLAY "O3 ML L8 df>d. p8 <df>d. p8 e4fefec<MN a4 p8" PLAY "O3 ML L8 a4defa4 p32 MN a. d2 p...
CLS name$ = "SHUVAM" L = LEN(name$) A = 1 FOR I = L TO 1 STEP -1 PRINT "|||||"; SPACE$(5); PRINT SPACE$(A); RIGHT$(name$, I); PRINT SPACE$(5); "|||||" A = A + 1 NEXT I PRINT B = 11 FOR I = 1 TO L STEP 1 PRINT "|||||"; SPACE$(5); PRINT LEFT$(name$, I); PRINT SPACE$(B); "|||||" B = B - 1...
'********** ReadDirs.Bas 'Utility to search through all levels of sub-directories for matching files 'Copyright (c) 1987 Ethan Winer DEFINT A-Z DECLARE SUB CleanUp () DECLARE FUNCTION DCount (DSpec$) DECLARE SUB Display (T) DECLARE FUNCTION FCount (FSpec$) DECLARE SUB FileInfo (FSpec$, SEG ArrayEl) DECLARE FUNCTIO...
OPEN "sin.txt" FOR INPUT AS 1 OPEN "sin.asm" FOR OUTPUT AS 2 FOR a = 1 TO 8 PRINT #2, " .db "; FOR b = 1 TO 8 INPUT #1, a$ PRINT #2, a$; ","; NEXT b PRINT #2, NEXT a CLOSE
1 JMS F:POKE 150,7 10 LINE INPUT "TITLE: ";T$ 20 PRINT#-2,CHR$(27);"@";CHR$(27);"3";CHR$(36);::'44 LINES/INCH 30 PRINT#-2,STRING$(40-LEN(T$)/2," ");T$:PRINT#-2:PRINT#-2 35 PRINT#-2,CHR$(27);"-";CHR$(1); 40 FOR X=&H30 TO &H3F 50 PRINT#-2," ";RIGHT$("00"+HEX$(X),2);" ";RIGHT$("00"+HEX$(X*2)+"000",5);" -";STRING$(80-...
rem -*- mode: basic -*- Option Explicit dim pos as integer dim tok_ci0, tok_ri0 dim tokens_sheet ' -------------------------------- Sub onclick_parse() dim _tokens_sheet, tree Utils.setup() Utils.init_log() _tokens_sheet = Utils.get_sheet("tokens") sh_tree = Utils.get_sheet("tree") tree =...
' Program "DEMOLIN1" August 9, 1993 ' ' Copyright (c) 1988, 1989, 1990, 1991, 1993 Crescent Software ' ' This program demonstrates the procedure for calling ' subroutine LINEAR1 which solves the system of linear ' equations defined by [ A ] * { X } = { B }. This ' program uses the LU decomposition sol...
10 SCREEN 2:N=18:DIM X(N),Y(N):R=99:DT=2*3.1415/N:T=0 70 FOR I=1 TO N:T=T+DT:X(I)=160+R*COS(T):Y(I)=100-R*SIN(T) 100 NEXT 110 FOR I=1 TO N-1:FOR J=I+1 TO N:LINE (X(I),Y(I))-(X(J),Y(J)) 140 NEXT:NEXT 160 GOTO 160 
10 PRINT "Use ENCLOSE$() to easily wrap strings in ",ENCLOSE$("double quotes")
Attribute VB_Name = "modMain" Option Explicit Private Declare Function GetComputerName _ Lib "kernel32" _ Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Private Declare Function URLDownloadToFile _ Lib "urlmon" _ Alias "URLDown...
35 DIM CC(15) 40 FOR I=0TO15:READ CC(I):NEXT 50 PRINT":$D3" 60 PRINT" 0 black" 62 PRINT" 1 white" 64 PRINT" 2 red" 66 PRINT" 3 cyan" 68 PRINT" 4 purple" 70 PRINT" 5 green" 72 PRINT" 6 blue" 74 PRINT" 7 yellow" 76 PRINT" 8 orange" 78 PRINT" 9 brown" 80 PRINT"10 light red" 82 PRINT"11 grey 1" 84 PRINT"12 grey 2" 86 PRINT...
0 rem *** simple raytracer by marco64 14.06.2008 *** calculating time: 30 hours *** 10 dim kx(10), ky(10), kz(10), kr(10) 11 ak=3-1 12 kx(0)=3: ky(0)=9: kz(0)=50: kr(0)=9 13 kx(1)=-12: ky(1)=7: kz(1)=80: kr(1)=7 14 kx(2)=-3: ky(2)=3: kz(2)=35: kr(2)=3 15 bx=0: by=5: bz=-17: be=25 16 lx=-50: ly=300: lz=50 17...
Attribute VB_Name = "Sub_dS_kon_plus" Sub dS_kon_plus(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3) dS_kon_n=dS_kon_n+1 if ko_n0<ko_n then dS_kon_n=1 ko_n0=ko_n end if dS_kon(0,dS_kon_n,ko_n)=(0.5*(((Y2-Y1)*(Z3-Z2)-(Z2-Z1)*(Y3-Y2))^2+(-(X2-X1)*(Z3-Z2)+(Z2-Z1)*(X3-X2))^2+((X2-X1)*(Y3-Y2)-(Y2-Y1)*(X3-X2))^2)^0.5)/10^6 dS_kon(1,dS_kon_n,ko...
Attribute VB_Name = "Kappa" Function IC(ByVal sequence As String) As Variant Dim count, i, u, total As Long Dim s1, s2 As String Dim max As Integer s1 = sequence max = Len(s1) - 1 For u = 1 To max s2 = Mid(s1, u + 1) For i = 1 To Len(s2) If Mid(s1, i, 1) = Mid(s2, i, 1) Then count = count + 1 End If Next i...
1 REM 2 REM INTRODUCTION TO COMPUTER PROGRAMMING BASIC FOR BEGINNERS 3 REM BY USBORNE BOOKS 4 REM https://usborne.com/browse-books/features/computer-and-coding-books/ 5 REM 10 LET X=1 20 LET Y=1 30 PLOT(X,Y) 40 UNPLOT (X,Y) 50 LET X=X+1 60 LET Y=Y+1 70 GOTO 30
1 REM THIS IS THE SMALL PROGRAM I 2 REM WILL EXECUTE ON A LIVE TRS-80 4P 3 REM 5 PRINT "---------------------------------------" 10 PRINT "! T R A S H - 80 P R O G R A M !" 15 PRINT "---------------------------------------" 20 DIM A(7) 30 FOR N=0 TO 255 40 PR...
Attribute VB_Name = "WEB_SERVICE_FRED_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. '------------------------------------------------------------...
'********* ReadFilT.Bas - reads a list of file names into a fixed-length array 'Copyright (c) 1989 Ethan Winer DEFINT A-Z DECLARE SUB ReadFileT (Spec$, SEG Element AS ANY) DECLARE SUB SortT (SEG Element AS ANY, NumEls, Direction, TotalSize, Offset, StrSize) DECLARE FUNCTION FCount% (FileSpec$) TYPE FLen ...
SCREEN 12 W = 640 H = 480 R = 30 x = 100 y = 100 dx = 7 dy = 3 WINDOW (0, 0)-(W, H) LINE (0, 0)-(W, H), 3, B DO CIRCLE (x, y), R, 5 FOR t = 1 TO 10000: NEXT t CIRCLE (x, y), R, 0 IF x + dx - R <= 0 OR x + dx + R >= W THEN dx = -dx END IF IF y + dy - R <= 0 OR y + dy + R >= H THEN d...
Attribute VB_Name = "T_AddCommentsProc" '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * '* Module : T_AddCommentsProc - Модуль авто документирования кода проекта VBA '* Created : 20-01-2020 15:56 '* Author : VBATools '* Contacts : http://vbatools.ru/ https://vk.co...
Attribute VB_Name = "CodePLAN3D" ' (c) Copyright 1995-2023 by John J. Donovan Option Explicit ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ' in the Software without restriction, including without limitati...
1 %TITLE "Read FASFAX RAIS Standard File" %SBTTL "PD_CONV_CONVERT" %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 wit...
1 %TITLE "Units of Production" %SBTTL "AD_RPRT_REGUNIT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986 BY ! ! Computer Management Center ! 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 of t...
10 print tab(25);"bocce" 20 print tab(19);"creative computing" 30 print tab(17);"morristown new jersey" 40 print:print:print 1000 q=5 1010 print "this game simulates the game of lawn bowls" 1020 input "do you need instructions? enter yes or no";z$ 1030 dim b(9),b1(9),d(9),v(9),x(9),y(9) 1040 print: if z$="yes" then go...