text
stringlengths
7
5.36M
Attribute VB_Name = "modBackend" Option Compare Database Option Explicit Public Const g_Backend = 1 Public Function AttachDSNLessTable(LocalTable As String, RemoteTable As String, Location As Long) As Boolean 10 On Error GoTo Error_Handler Dim td As TableDef Dim strCon As String Dim d...
Operation =1 Option =0 Where ="(((qasub_Events_scope_filter.Entered_by) Is Null)) OR (((qasub_Events_scope_filt" "er.Entered_date) Is Null)) OR (((qasub_Events_scope_filter.Updated_by) Is Null) " "AND ((qasub_Events_scope_filter.Updated_date) Is Not Null)) OR (((qasub_Events_s" "cope_filter.Updated_by) Is ...
DECLARE FUNCTION GASDEV! (IDUM&) DECLARE FUNCTION RAN1! (IDUM&) FUNCTION GASDEV (IDUM&) STATIC ISET, GSET IF ISET = 0 THEN DO V1 = 2! * RAN1(IDUM&) - 1! V2 = 2! * RAN1(IDUM&) - 1! R = V1 ^ 2 + V2 ^ 2 LOOP WHILE R >= 1! OR R = 0! FAC = SQR(-2! * LOG(R) / R) GSET = V1 * FAC GASDEV = V2...
10 X1=59 11 Y1=21 20 I1=-1.0 21 I2=1.0 22 R1=-2.0 23 R2=1.0 30 S1=(R2-R1)/X1 31 S2=(I2-I1)/Y1 40 FOR Y=0 TO Y1 50 I3=I1+S2*Y 60 FOR X=0 TO X1 70 R3=R1+S1*X 71 Z1=R3 72 Z2=I3 80 FOR N=0 TO 30 90 A=Z1*Z1 91 B=Z2*Z2 100 IF A+B>4.0 GOTO 130 110 Z2=2*Z1*Z2+I3 111 Z1=A-B+R3 120 NEXT N 130 PRINT CHR$(62-N); 140 NEXT X 150 PRI...
start: CLS SCREEN 12 RANDOMIZE TIMER x1& = INT(RND * 640) + 1 y1& = INT(RND * 480) + 1 x2& = INT(RND * 640) + 1 y2& = INT(RND * 480) + 1 x3& = INT(RND * 640) + 1 y3& = INT(RND * 480) + 1 dir1& = INT(RND * 4) + 1 dir2& = INT(RND * 4) + 1 dir3& = INT(RND * 4) + 1 live1& = 1 live2& = 1 live3& = 1 tim = 250 DO FOR delay = ...
10 PRINT "TEST 1" 20 P=π 30 PRINT "π=";P 40 PRINT "◀_≤≠≥←↓→π○◻▵×÷ᴇ▪°♠♥♦♣█ΣΩμ\"
REM James/8B/10 CLS INPUT "Jari-jari = "; r Luas = 22 / 7 * r * r PRINT "Luas lingkaran = "; Luas; "CM2" END
' ' vim: ft=basic ' option explicit public sub aSub() public function aFunc(param as double)
10 PRINT "PROGRAM FILE 135: SERIAL TEST FOR RANDOMNESS." 20 PRINT " ANSI STANDARD 8.4" 30 PRINT 40 PRINT "SECTION 135.1: SERIAL TEST FOR RANDOMNESS." 50 PRINT 60 PRINT "THIS PROGRAM TESTS WHETHER PAIRS OF ADJACENT NUMBERS FROM" 70 PRINT "THE RND FUNCTION ARE EQUALLY DISTRIBUTED AMONG CATEGORIES" 80 PRINT "BASED ON T...
1 %TITLE "ABC Stock Value Report" %SBTTL "IC_RPRT_ABC" %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 inc...
i = 0 j = 0 DO WHILE i < 4 i = i + 1 PRINT "I =" + STR$(i) DO UNTIL j > 3 j = j + 1 PRINT "J LOOP" + STR$(j) LOOP j = 0 LOOP
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =5385 DatasheetFontHeight =11 ItemSuffix =54 Right =25080 Bottom =12120 DatasheetGridlin...
0REM /// MASTERMIND /// V3 20 M=#2800;N=M+4;C=N+4;B=C+1;L=B+1;U=L+10 23 G=U+25;R=G+41;O=R+41;W=O+1 25 DIM ZZ10,EE2,SS4 60 EE0=#3347;EE1=#3385;EE2=#3300 1000 DO SS1=SS1+1;SS2=SS2+1;T=#8020;?#E1=0 1005 Y=1; Z=1 1007 CLEAR0; MOVE4,4;DRAW4,47;MOVE35,4;DRAW35,47 1008 MOVE0,44;DRAW63,44;MOVE0,4;DRAW63,4 1009 MOVE34,4;DRAW34...
'map editor DECLARE SUB puttiles () DECLARE SUB savemap () DECLARE SUB puttile (x, y) SCREEN 12 CLS DIM SHARED tiles(16, 12) AS INTEGER DIM SHARED a a = 18 DIM SHARED tilenames(0 TO a) AS STRING der: 'INPUT "Enter how many tiles you will use in this screen: ", a INPUT "Default tile: ", defaulttile FOR ch...
10 rem * example 1 * 20 rem creating programmable characters 31 poke 56334,peek(56334) and 254:poke 1,peek(1) and 251:rem turn off kb and i/o 35 for i=0 to 63:rem character range to be copied from rom 36 for j=0 to 7:rem copy all 8 bytes per character 37 poke 12288+i*8+j,peek(53248+i*8+j):rem copy a byte 38 next ...
'SpaceBlast v1.0a 'By: Mallot1 '(C) 2013 NOMAINWIN WindowWidth = DisplayWidth WindowHeight = DisplayHeight [MainMenu] 'buttons and things button #main.play, "Play Game", [Game], UL, DisplayWidth/2-100, 200, 200, 50 button #main.about, "About", [About], UL, DisplayWidth/2-100, 250, 200, 50 ...
10 PRINT "HELLO" 20 GOSUB 200 30 LET A = 6 90 STOP 200 FOR I = 1 TO 3 : PRINT I : NEXT I 280 PRINT "END SUBROUTINE" 290 RETURN 999 END
10 :REM'PWRCCT - Power Supply Schematic - 05 DEC 90 rev. 10 OCT 07 20 CLS:KEY OFF 30 SCREEN 0,0,0 40 COMMON EX$,PROG$ 50 IF EX$=""THEN EX$="EXIT" 60 PROG$="pwrcct" 70 COLOR 7,0,1 80 PI=3.1415929794311523! 90 UL$=STRING$(79,205) 100 :REM' 110 :REM'.....start 120 CLS 130 COLOR 15,2 140 PRINT " POWER SUPPLIES";TAB(57);"b...
10 REM This is a test 20 LET A=10 30 LET B=10+A 40 PRINT A,B 90 STOP 99 END
IF usercommand$(runcommands) = "keyboard" THEN speechoutput$ = "launching virtual keyboard" speechprint$ = speechoutput$ GOSUB textprint GOSUB speechoutput SHELL _DONTWAIT _HIDE "start %SystemRoot%\system32\osk.exe" usercommands = -1 END IF
' Excelでフローチャートを生成するマクロ ' https://github.com/kazniato/flowchart.bas Option Explicit '-- 幾何定数 -- Private Const kRectangleWidth = 160 ' 処理ノード幅 Private Const kRectangleHeight = 35 ' 処理ノード高さ Private Const kDecisionWidth = 180 ' 分岐ノード幅 Private Const kDecisionHeight = 50 ' 分岐ノード高さ Private Const ...
CLS SCREEN 1 g = 150 h = 100 DIM xc(4): DIM yc(4) LET xc(1) = 130 LET yc(1) = 80 LET xc(2) = 180 LET yc(2) = 80 LET xc(3) = 130 LET yc(3) = 110 LET xc(4) = 180 LET yc(4) = 110 CLS LINE (0, 0)-(xc(1), yc(1)) LINE (0, 190)-(xc(3), yc(3)) LINE (315, 0)-(xc(2), yc(2)) LINE (315, 190)-(xc(4), yc(4)) LINE...
10 REM THIS PROGRAM TESTS IF A NUMBER IS PRIME 20 REM IT CONTINUES TO CYCLE UNTIL ZERO IS ENTERED 30 PRINT "ENTER THE TEST NUMBER, ZERO TO STOP" 40 INPUT N 50 LET N = INPUT(N) 60 IF N = 0 THEN 220 70 IF N < 4 THEN 180 80 LET I = 0 90 LET T = 2 100 LET J = INT(N/T) 110 LET K = J*T 120 IF N = K THEN 200 130 LET I = I + 1...
1 print "h" : rem *** clear screen *** : rem (todo) h = heart symbol 2 print "*** music by jim vogel ***" 3 print "*** program design ***" 4 print "*** jim vogel and nevin scrimshaw ***" 5 print "*********************************" 6 print "please wait: setting up arrays" 7 print "*********************************" 10 ...
1 PAPER 0: BORDER 0: INK 7 2 CLS 3 PLOT 0,0: DRAW 0,175: DRAW 255,0: DRAW -0,-175: DRAW -255,-0 4 PRINT AT 0,4;"! ESCALAS TERMOMETRICAS !" 5 PRINT AT 3,10;"ESCALAS" 6 PRINT AT 5,1;"1-CENTIGRADOS C" 7 PRINT AT 7,1;"2-FAHRENHEIT F" 10 PRINT "" 11 PRINT " - DIGITE O VALOR" 12 INPUT V 13 PRINT " - EM QUE ESCALA E...
10 PRINT "X" 20 PRINT "eriojngioerijiosiorejgioeriorsjbbnilsbnsbnerioerjniperjnho;ehoetghgsbuo;rbo;eriioserhoerioserphopjiser" 30 PRINT "y"
DIM A, B, C, COUNTER, Text, K REM Check simple print PRINT "Hello"; " "; "world!" REM Check print with variables Text = "0x10c" PRINT "Welcome to QBasic compiler" PRINT "for "; Text; " virtual computer!" REM Math check A = 24 B = A * 2 + 3 C = 10 + A / 2 + B A = (A / 2) * 9 ^ 3 B = B ^ 2 + 10 PRINT "A: "; A; ", B: ...
cls open "I",#1,"USER.DAT" line input #1,nam$ line input #1,num$ num$="Unlizensierte Kopie !!" close #1 stp=0 1 rem cls color 15 locate 1,1 print "Codierter USER #1: ";nam$ print "Codierter USER #2: ";num$ print print "Decodierter #1 : ";dnam$ print "Decodierter #2 : ";dnum$ print print "Schrittweit...
1000 p=peek(198): p=p+1: if p>9 then p=9 1010 for j=631+p to 631 step -1: poke j, peek(j-1):next 1020 poke 198,p: poke 631,34: input x$ 1030 print x$: forj=1 to 1000: next: goto 1000
1 %TITLE "Payroll Time/Unit Report" %SBTTL "PR_RPRT_TRN_EXCESS" %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 ...
5 PRINT TAB(33);"BAGELS" 10 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 15 REM *** BAGELS NUMBER GUESSING GAME 20 REM *** ORIGINAL SOURCE UNKNOWN BUT SUSPECTED TO BE 25 REM *** LAWRENCE HALL OF SCIENCE, U.C. BERKELEY 30 DIM A1(6),A(3),B(3) 40 Y=0:T=255 50 PRINT:PRINT:PRINT 70 INPUT "WOULD YOU LIKE THE RU...
'_|_|_| LABEL.BAS '_|_|_| A simple method to read disk volume labels. '_|_|_| No warrantee or guarantee given or implied. '_|_|_| PUBLIC DOMAIN by Kurt Kuzba. (7/22/1997) ON ERROR GOTO BooBoo COLOR 1, 7: INPUT "Enter drive label to read => ", Drive$ COLOR 14, 0 SHELL "dir " + Drive$ + ":\label.get > l...
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault AutoCenter = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault DefaultView =0 ...
CLS DIM a(10) AS INTEGER OPEN "even.in" FOR INPUT AS #1 OPEN "even.out" FOR OUTPUT AS #2 INPUT #1, n FOR i = 1 TO n INPUT #1, a(i) NEXT i ans = -1 FOR i = 1 TO n - 1 FOR j = i + 1 TO n t = a(i) + a(j) flg = 1 FOR k = 2 TO t STEP 2 IF t MOD (k * 2) = 0 THEN flg = 0 E...
DECLARE SUB delay (hold!) DECLARE FUNCTION msg$ () COLOR 14, 1 CLS LOCATE 3, 1 s$ = STRING$(11, " ") PRINT s$ + "This program demonstrates application of scrolling text" PRINT s$ + "on a single line of the screen. Speed may be controlled" PRINT s$ + "by adjusting the value you are sending to the delay SUB." PR...
5 REM Algoritmo de fizzbuzz 10 FOR N = 1 TO 100 20 GOSUB 200 30 IF N3 = 0 THEN 70 40 IF N5 = 0 THEN 110 50 PRINT INT(N) 60 GOTO 120 70 PRINT "FIZZ", 80 IF N5 = 0 THEN 110 90 PRINT 100 GOTO 120 110 PRINT "BUZZ" 120 NEXT N 130 GO TO 400 200 REM Get remainders 201 LET N3 = N 210 IF N3 < 3 THEN 240 220 LET N3 = N3 - 3 230...
10 A$="FRED" 20 ? MID$(A$,2,1) 30 B=2 40 ? MID$(A$,B,B) 50 B=70 60 ? MID$(A$,B,B)
REM #################################################################### REM # REM # Plot the region including the Mandelbrot Set just for fun REM # REM # The Mandelbrot set is defined as: REM # REM # M = {c in C | z(0) = 0, z(n+1) = z(n)^2 + c, {z(n)} is bounded} REM # REM # For the bound it is enough to te...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault OrderByOn = NotDefault AllowDesignChanges = NotDefault DefaultView =2 TabularCharSet =204 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =8760 DatasheetFontHeight =11 ItemS...
Attribute VB_Name = "Utils" ' ' **************************************************************************** ' ' SQUID2 is a program for processing SHRIMP data ' ' Program author: Dr Ken Ludwig (Berkeley Geochronology Center) ' ' Supporters (members of the SQUID2 Development Group): ' - Geoscience Austral...
10 PRINT "WEATHER APP" 20 REM FETCH THE LOCATION AND WEATHER DATA 30 OUT 32,1 40 REM PUBLISH THE TEMPERATURE 50 OUT 32,2 60 REM GET THE TEMPERATURE AS A STRING 70 A$="" 80 C=INP(42) 90 IF C = 0 THEN GOTO 120 100 A$=A$+CHR$(C) 110 GOTO 80 120 PRINT "TEMPERATURE "+A$ 130 PRINT "END"
10 :REM'BRIDGE-2 20 SEP 2010 20 CLS:KEY OFF 30 IF EX$=""THEN EX$="EXIT" 40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$ 50 COMMON EX$,PROG$ 60 :REM'.....title page 70 CLS:COLOR 15,2 80 PRINT " WHEATSTONE BRIDGE #2"TAB(61)"by R.J.Dehoney IEEE " 90 COLOR 7,0 100 :REM'.....start 110 REM '---------------BRIDGE7.BAS,rjd,8/18/1...
LET N = 5 LET G = 10 LET NALEZ = 0 LET I = 0 LET A = INT(G * RND) LET B = INT(G * RND) OLAL: IF NOT ( NALEZ = 0 AND I <= 5) THEN GOTO FEDO INPUT "X,Y" ;X,Y IF ABS (X-A)+ABS(Y-B)=0 THEN GOTO FEDOS GOSUB FEDOE GOTO OLA FEDOS: PRINT "ZVIRE NALEZENO:";A,B LET NALEZ = 1 OLA : LET I = I+1 GOTO OLAL END F...
10 DIM J(3):DIM K(4) 20 J(1)=20 30 J(2)=85 40 J(3)=J(1)+J(2) 50 K(2)=J(3) 60 A=K(2) 70 PRINT A,"=105"_"ARRAY J()=" 80 FOR I=1 TO 3 90 PRINT J(I) 100 NEXT I 200 STOP
10 print tab(21);"life expectancy" 20 print tab(20);"creative computing" 30 print tab(18);"morristown, new jersey" 40 print:print:print 270 print :print:print 280 print "this is a life expectancy test." 290 print " do you wish instructions"; 300 input i$ 310 if left$(i$,1)="n" then 470 320 print:print 340 print " t...
;;; Library of useful assembly macros ;; vim: ft=basic ;; Input: a,b Output: c <- a+b, A=cHI, X and Y unaffected #define _add16(aHI,aLO,bHI,bLO,cHI,cLO) CLC : LDA aLO : ADC bLO : STA cLO : LDA aHI : ADC bHI : STA cHI ;; Inputs and outputs can be #s &s or variables, but probably not (,X)s ord (),Ys due to macros. Ou...
'**************************************************************** '* Name : KESMETMR0.BAS * '* Author : [Erol Tahir Erdal] * '* Notice : Copyright (c) 2005 [ETE] * '* : All Rights Reserved ...
nombre = 99 DIM as integer xCoord(nombre + 1) DIM as single energie(nombre + 2), influence(nombre + 1) dim as single inertie(nombre + 1), energiePrec(nombre + 1) dim as single vitesse, pi, lambda, phase, amplitude, yCoord, pas screen 19,24,3: page1 = 1: GOSUB Initialisation ' MODÉLISATION DE L'ÉTHER, ÉTAPE 2...
5 ONERRORGOTO900 20 MODE8:DIM:r=0:c$=CHR$(5) 30 CLS:PRINT"4çr“/3 r:radius"; 40 LOCATE0,1:PRINTc$;"r=";r;"?";:INPUT@42;r:LOCATE0,0:IFr<0 THEN40 50 LOCATE0,1:PRINTc$;"Volume =";4*PI*r^3/3;:z$=INPUT$(1,@):GOTO40 900 IFERR=1 THENCLS:ONERRORGOTO0 910 IFERL=40 THENRESUME40 930 LOCATE0,1:PRINTc$;"not found";:z$=IN...
1 %TITLE "Payroll Retirement Report" %SBTTL "PR_RPRT_RETIRE" %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 license and with ! the inc...
1 %TITLE "Manufacturing Order Line Option Register" %SBTTL "MO_MAIN_REGLINEOPT" %IDENT "V3.6a Calico" FUNCTION LONG MO_MAIN_REGLINEOPT(CDD_WINDOW_CDD SMG_WINDOW, & LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1990 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This s...
electrochemistry:1110 is:2350 the:2510 most:2630 important:3170 branch:3850 of:4410 chemistry:4590 you:6540 notice:6690 some:7030 theme:7330 in:7720 my:8240 professional:8470 life:9080 see:10200 i:10400 have:10510 tenure:10730 so:11230 what:11670 does:11940 that:12030 mean:12230 it:12560 means:12640 you:12890 find:1302...
1 %TITLE "Product Cost Structure" %SBTTL "BM_RPRT_LOWCOST_02" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 2000 BY ! ! Software Solutions, 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 ...
' This script is an example of the EMDO101, EMDO102, EMDO103 energy manager ' Please visit us at www.swissembedded.com ' Copyright (c) 2017 swissEmbedded GmbH, All rights reserved. ' Self made battery storage solution ' Config ' don't probe, use order the inverters INV500-90 are mounted on the rail AECIds$=chr$(26)+chr...
10 print chr$(147);chr$(31) 20 poke 53280,8 : poke 53281,3 30 print : print tab(6);"c";tab(18);"f";tab(31);"k" 40 print "----------------------------------------" 50 for c=-40 to 120 step 10 60 gosub 90 70 next c 80 end 90 print tab(4);c;tab(16)c*9/5+32;tab(29);c+273 100 for a=1 to 200 : next a 110 return
CLS SCREEN 12 start: PRINT "Welcome to the game of questions on world records" INPUT "", b$ CLS PRINT "Q1 " PRINT "The greatest number of volunteers to have collected litter in one place on one day is" PRINT "A.50,405" PRINT "B.50,659" PRINT "C.40,211" INPUT "", a$ IF a$ = "a" THEN PRINT "You're right" ELSE GOTO lose ...
DIM KeyPressed AS STRING CLS PRINT PRINT INPUT "Please Enter A Key (A,B,C,D): ", KeyPressed KeyPressed = UCASE$(KeyPressed) PRINT SELECT CASE KeyPressed CASE "A" PRINT "A Was Entered" CASE "B" PRINT "B Was Entered" CASE "C" PRINT "C Was Entered" CASE "D"...
100 REM ELECT3 - ELECTION SIMULATION 105 REM COPYRIGHT 1972 - STATE UNIVERSITY OF NEW YORK 110 REM DEVELOPED BY D. KLASSEN, JUNE 1972 115 REM PROGRAMMED BY L. KAUFMAN, JUNE 1972 120 REM LATEST REVISION 2-21-73 125 DIMP(10),C(4),E(9),W(6),Y(3,2),I(3),S(3),T(3) 130 PRINT"PER"; 135 INPUTR1 140 IF(R1-1)*(R1-2)*(R...
10 :REM'SCALSPD - Scale Speefs - 11 NOV 05 20 IF EX$=""THEN EX$="exit" 30 COMMON EX$ 40 :REM' 50 KEY OFF:CLS 60 E$=STRING$(79,32) 70 UL$=STRING$(80,205) 80 COLOR 15,2:PRINT " SCALE SPEED"TAB(57)"by George Murphy VE3ERP "; 90 COLOR 7,0:PRINT UL$; 100 PRINT " This program calculates the scale speed of a scale model trave...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =14700 DatasheetFontHeight =11 ...
10 LET a$="M8UX350W5O7(((C)))" :PLAY a$ : PAUSE 25 20 LET a$="M56UX5000W1O3(((C)))" :PLAY a$ : PAUSE 25 30 LET a$="M56W2O1N8C" :PLAY a$ : PAUSE 25 40 PAUSE 100: GO TO 10
100 INPUT "ENTER A NUMBER ",N 110 PRINT "ABS(N)=";ABS(N) 120 PRINT "ATN(N)=";ATN(N) 130 PRINT "SIN(N)=";SIN(N) 140 PRINT "COS(N)=";COS(N) 150 PRINT "EXP(N)=";EXP(N) 160 PRINT "INT(N)=";INT(N) 170 PRINT "LOG(N)=";LOG(N) 180 PRINT "SGN(N)=";SGN(N) 190 PRINT "SQR(N)=";SQR(N) 200 PRINT "TAN(N)=";TAN(N)
10 REM TEST OF MISMATCHED BRACKET AND PARENTHESIS 20 LET A[1) = 0 90 END
DECLARE SUB sing () DECLARE SUB GiveSnack () DECLARE SUB CryForPoop () DECLARE SUB Normal () DECLARE SUB EggMove () DECLARE SUB BeforHatch () DECLARE SUB Hatching () DECLARE SUB CryForFood () DECLARE SUB GiveFood () DECLARE SUB PrintEgg () pause = 1 COLOR 15 CLS PRINT " "; CHR$...
Attribute VB_Name = "modMain" Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAf...
100 CLS 110 OPEN "filename.txt" FOR OUTPUT AS 1 120 FOR I = 1 TO 1000 130 FPRINT 1, MCASE$( "this is line number" ),I 140 NEXT 150 CLOSE 1 160 OPEN "filename.txt" FOR INPUT AS 1 170 WHILE NOT EOF(1) 180 LINE INPUT 1,A$ 190 PRINT A$ 200 WEND 210 CLOSE 1 220 KILL "filename.txt"
CLS PRINT "Total", "sailor 1", "sailor 2", "sailor 3" FOR pile = 1 TO 1000 LET a = (2 / 3) * (pile - 1) LET b = 0 LET c = 0 LET d = 0 IF a > 0 AND INT(a) = a THEN LET b = (2 / 3) * (a - 1) IF b > 0 AND INT(b) = b THEN LET c = (2 / 3) * (b - 1) IF c > 0 AND INT(c) = c THEN LET d = (1 / 3) * (c - 1) IF d > 0 AN...
Attribute VB_Name = "ModImportResultados" Public linha_importa As Integer 'Puxar arquivos gerados na pasta "resultados" Sub ListarArquivosResultados() Set wb = ActiveWorkbook i = 1 Pasta = wb.Sheets("PRINCIPAL").Range("C4") & "resultados\" tpArq = "*.txt" ' Tipo de arquivos Arq = Dir(Pasta & tpArq, vbDirectory) wb...
DECLARE SUB IO (A%, B%, X%, Y%, RESULT%) DECLARE SUB SHOWBD () DECLARE FUNCTION EVALUATE% (ID%, PRUNE%) DECLARE SUB SHOWMAN (A%, B%, FLAG%) DECLARE SUB MOVELIST (A%, B%, XX%(), YY%(), NDX%) DECLARE SUB MAKEMOVE (A%, B%, X%, Y%) DECLARE SUB PAWN (A%, B%, XX%(), YY%(), NDX%) DECLARE SUB KNIGHT (A%, B%, XX%(), YY%(...
9 REM THANK YOU LETTER GENERATOR 10 PRINT "THANK YOU LETTER GENERATOR" 20 PRINT 30 PRINT "WHO ARE YOU WRITING TO?" 40 INPUT N$ 50 PRINT "WHAT WAS THE PRESENT?" 60 INPUT P$ 70 PRINT "WHAT IS YOUR NAME?" 80 INPUT Y$ 90 PRINT 100 LPRINT 110 LPRINT 120 LPRINT "DEAR ";N$;"," 130 LPRINT 140 LPRINT "THANK YOU VERY MUCH" 150 L...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault AllowDesignChanges = NotDefault DefaultView =2 TabularFamily =102 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =6300 DatasheetFontHeight =10 ItemSuffix =6 Right =13515 B...
1 REM TELENGARD/64 V4.18 (C)COPYRIGHT 1981 ORION SOFTWARE - ALL RIGHTS RESERVED 2 REM Telengard Remastered v1.0 - 2016-02-09 - Remastering by Eric B. Pratt 3 GOSUB905:GOTO113 !------------------------------------------------------------------------------- !- Generate Dungeon View !--------------------------------------...
DECLARE FUNCTION LineofSight (x1, y1, x2, y2) DECLARE SUB Warp (x, y) DECLARE SUB Drawscreen (ndiamond, cur, ky, tries) DECLARE SUB Drlin (x1, y1, x2, y2) DECLARE SUB Drblock (x1, y1, x2, y2) DECLARE SUB Killdude (x1(), y1(), p, n) DECLARE FUNCTION Whichone (xx(), yy(), x, y, n) RANDOMIZE TIMER bombtime = 15...
Attribute VB_Name = "digitek" ' digitek AIM module 1.0 | ' by grn eminem | ' greetz to digiwizard | ' for use with AIM 3.5 | ' made in vb5 | '------------------------- 'there are no ad hiders in this bas 'simply because if you do remove them 'they are distorted and more annoying 'then what they ...
10 REM Считывание из файла "Массив" 20 MAXFILES=2:OPEN"Массив" AS#2 LEN=8:FIELD 2,8 AS M 50 FOR I=30 TO 1 STEP-1 60 GET 2,I:PRINT CVD(M); 80 NEXT 
10 REM ******************* WORD SEARCH ******************* 20 REM 30 REM\t\t C. F. MOWERY, JR. MODIFIED BY P. SWAYNE 40 REM\t\t 13305 S. 26th AVE. 50 REM\t\t OMAHA, NE 68123 60 REM\t\t TEL: (402) 292-6344 70 CLEAR 1000 80 DEFINT A-Z:DIM A$(6),A1$(2),A2$(2),A3$(2),A4$(4),A5$(1),A6$(2),L$(9):D=11 90 DIM J$(4)...
anz = 6 mm = 31 DIM a(anz) DIM i(mm) FOR x = 1 TO anz - 1 READ a(x) NEXT x FOR q = 0 TO mm FOR x = 0 TO mm i(x) = 0 NEXT x a(anz) = q CLS FOR x = 1 TO anz FOR y = 1 TO anz LOCATE x, y * 3 t = (mm + a(x) - a(y)) MOD mm PRINT t i(t) = i(t) + 1 NEXT y NEXT x PRINT er = 1 ...
1 gosub 1000 10 print chr$(147) 11 poke53272,23:rem lowercase 15 poke53280,0 16 poke53281,0 17 print "{wht}" 20 print " c64 I.D.I.o.T.R" 30 print " ---------------" 40 print "" 50 print "Intelligent Dimmer for Internet o'Things" 51 print " RRRRRRR" ...
100 REM SQUARES 110 GOSUB 1100 120 LET Q=4 130 GOSUB 2900 140 GOSUB 3000 150 FOR R=1 TO Q*Q-1 160 GOSUB 2500 170 LET V$(R)=R$ 180 NEXT R 190 LET V$(Q*Q)="+" 200 FOR N=Q*Q-2 TO Q-1 STEP -1 210 GOSUB 1300 220 LET T$=V$(N+1) 230 LET V$(N+1)=V$(R) 240 LET V$(R)=T$ 250 NEXT N 260 GOSUB 450 270 LET S=0 280 LET M=0 290 GOSUB ...
#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 ...
1 SCREEN 9 DIM x AS INTEGER DIM y AS INTEGER DIM S(1000) AS INTEGER DIM R(1000) AS INTEGER DIM C(1000, 1000) AS INTEGER y = 30 FOR a = 0 + 1 TO 60 STEP 10 b = 60 S(a) = 1 R(b) = 1 C(c, d) = S(c) C(c, d) = R(d) NEXT GOSUB fan '==========================================================================...
10 'FMTscsi fmt14.bas 20 '93/08/23 13:20 30 'FORMAT PROGRAM FOR SCSI DRIVES 35 GOTO 9000 100 ' WAIT FOR TARGET TO ASSERT REQ ************ 105 TI=1000 110 TI=TI-1 : IF TI=0 THEN 2000 120 IF PEEK(BA+1)<128 THEN 110 130 RETURN 200 ' WRITE DATA BLOCK ************************* 202 BM = ( BL(0) * &H100) + BL(1) -1 205 F...
' program life : the game of life '/////////////////////////////////////////// CONST maxrow = 25 ' max row CONST maxcol = 80 ' max column CONST maxage = 5 CONST dead = 0 DIM grid(maxrow + 1, maxcol + 1) ' the grid + border DIM temp(maxrow + 1, maxcol + 1) ' temp grid + border DIM n...
10 'PROGRAM C 20 CLS 30 INPUT "WHAT IS THE FIRST PERSONS NAME"; NAME1$ 40 INPUT "WHAT IS HIS/HER SCORE"; SCORE1 50 INPUT "WHAT IS THE SECOND PERSONS NAME"; NAME2$ 60 INPUT "WHAT IS HIS/HER SCORE"; SCORE2 70 LET BASKET1 = SCORE1 / 3 80 LET BASKET2 = SCORE2 / 3 90 PRINT 100 PRINT "NAME", "SCORE", "BASKETS MADE" 110 PRINT...
10 PRINT "PROGRAM FILE 105: ERROR - NULL DATUM IN DATA-LIST." 20 PRINT " ANSI STANDARD 14.2" 30 PRINT 40 PRINT "SECTION 105.1: ERROR - NULL DATUM IN DATA-LIST." 50 PRINT 60 PRINT 70 PRINT "THIS IS A TEST FOR A NON-STANDARD FEATURE OF MINIMAL BASIC." 80 PRINT "TO PASS THIS TEST, THE PROCESSOR MUST EITHER:" 90 PRINT 1...
10 JMSF:CLS:CLEAR 200,&H3FF0 15 LINE INPUT"ENTER FILE NAME (NO EXT) TO BE BINARIEIZED: ";F$ 20 OPEN "R",#1,F$+".BAS",1 30 FIELD 1,1 AS A$:L=LOF(1) 40 FORX=&H4000 TO&H4000+L-1:GET#1:POKEX,ASC(A$):NEXT:CLOSE 50 SAVEM F$+".BIN",&H4000,&H4000+L+1,&H4000 60 POKE 113,0:DLOAD
10 input "po",pos 20 print pos
USE BCURSES USE BQUEUE FUNCTION PAIR(X, Y) THIS = STRUCT() THIS.X = X THIS.Y = Y RETURN THIS END FUNCTION SNAKE = QUEUE() TOP = PAIR(0, 0) MOVE = PAIR(1, 0) APPLE = PAIR(-1, 0) DIM WINCHARS(XMAX() * YMAX()) as integer FOR i = 0 TO XMAX() * YMAX() WINCHARS(i) = ASC("!") NEXT i SUB SNKINIT() SE...
10 REM ... LIMERICKS ... 15 DIM S(100),G(32),H(32) 20 P=1000;PRINT "A " 30 GOSUB s;W=R;GOSUB s;X=R;GOSUB s;Y=R 40 PRINT "FROM " 50 GOSUB s;Z=R;PRINT ' 60 PRINT "ONCE ";GOSUB s;$G=$C 70 GOSUB s;R=Z;GOSUB t;PRINT ' 80 R=Y;GOSUB t;$H=$C;PRINT $G,"SO " 90 GOSUB s;T=R;PRINT '"THAT ",$H;GOSUB s;R=T; GOSUB...
10 print "Math Dice" 20 print "by Lee Tusman" 30 print : print : print 40 print "This program originally by Jim Gerrish, 1978" 50 print "reworked at School For Poetic Computation May 2014" 60 print "For more info visit sfpc.io and leetusman.com" 70 print "Type control-C to close" 80 print 90 print 100 n = n+1 110 d = i...
00 DATA 2, 5 10 READ a, b, c 20 READ d, e, f 40 DATA 3, 5, 4, 0, 12, -8 50 END
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =15353 DatasheetFontHeight =11 ItemSuffix =90 Rig...
Attribute VB_Name = "MOD_ParseHTML" Option Explicit '--------------------------------------------------------------------------------------- ' Procedure : ExtractDivSetting ' DateTime : 6/3/2009 14:13 ' Author : Mauro Biefeni ' Purpose : The purpose of this function is to extract the given value from the ...
'********** READFILI.BAS - shows how ReadFileI returns full file information 'Copyright (c) 1989 Ethan Winer DEFINT A-Z DECLARE FUNCTION FCount% (FSpec$) DECLARE FUNCTION WhichError% DECLARE SUB ReadFileI (BYVAL Address) DECLARE SUB WaitKey () CLS LINE INPUT "Enter a file specification: ", FSpec$ Count = FCount%(FS...
2 PRINT TAB(33);"LOVE" 4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 6 PRINT: PRINT: PRINT 20 PRINT "A TRIBUTE TO THE GREAT AMERICAN ARTIST, ROBERT INDIANA." 30 PRINT "HIS GREATEST WORK WILL BE REPRODUCED WITH A MESSAGE OF" 40 PRINT "YOUR CHOICE UP TO 60 CHARACTERS. IF YOU CAN'T THINK OF" 50 PRINT...
Version =21 VersionRequired =20 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault ...
FOR c = 0 to 100 STEP 5 LET f = (c*9/5) + 32 PRINT c + '==>' + f NEXT
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...
NN$=COMMAND$ DEF SEG=&HB800 CLS SAT=1 : SUT=1 : BLOAD NN$,0 OKU: KB$="" WHILE KB$="" : LOCATE SAT,SUT,1 : KB$=INKEY$:WEND ATT=(SAT-1)*160+(SUT-1)*2+1 : RENK=PEEK(ATT) IF KB$="S" THEN GOTO CIK IF KB$="A" THEN IF RENK<>255 THEN RENK=RENK+1 : POKE ATT,RENK IF KB$="Z" THEN IF RENK<>001 THEN RE...
1 REM Sierpinski Curve 10 INPUT"MODE"O 15 INPUT"SIZE"K 20 CLEARO 30 S=5 40 J=1 50 FOR I=1 TO 5 60 J=J*2;D=K/J/4 70 X=K-5*D; Y=K-2*D 80 T=1; MOVE X,Y 90 X=X+D; A=J; B=J; GOTO s 100aIF A=J AND B=J GOTO z 110sP=J; Q=A; R=B 120vIF P<2 GOTO z 130 IF P=2 GOSUB o; GOTO a 140 P=P/2 ...