text stringlengths 7 5.36M |
|---|
1 'Example of LEFT$ function
10 A$ = "Hopeless"
20 B$ = LEFT$(A$,4)
30 PRINT B$
|
' The Rotater
' by
' Toby Toland
' &
' Justin Harms
' Version 1.1
'.......version 1.1 OCT 2002
'.......added speed adjuste... |
120 OPEN"R",#1,"INVEN.DAT",39
125 FIELD#1,1 AS F$,30 AS D$, 2 AS Q$,2 AS R$,4 AS P$
130 PRINT:PRINT "FUNCTIONS:":PRINT
135 PRINT 1,"INITIALIZE FILE"
140 PRINT 2,"CREATE A NEW ENTRY"
150 PRINT 3,"DISPLAY INVENTORY FOR ONE PART"
160 PRINT 4,"ADD TO STOCK"
170 PRINT 5,"SUBTRACT FROM STOCK"
180 PRINT 6,"DISPLAY ALL ITEMS B... |
1 %TITLE "Read Transaction Account"
%SBTTL "UTL_READ_TRANSACCT"
%IDENT "V3.6a Calico"
FUNCTION LONG UTL_READ_TRANSACCT(LOCATION$, TRANSTYPE$, &
PRODTYPE$, UTL_TRANSACCT_CDD UTL_TRANSACCT_READ)
!
! COPYRIGHT (C) 1987, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho
!
! This software is fu... |
1 %TITLE "Print All Programs Used in a System"
%SBTTL "SI_RPRT_PROGRAM"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987 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
! th... |
1 %TITLE "Price Type List"
%SBTTL "PC_RPRT_PRCTYPE"
%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 inclus... |
10 rem
15 rem goto 15
20 BASE=2*4092: POKE 53272,PEEK(53272)OR8
30 POKE 53265,PEEK(53265)OR32
40 FOR I=BASE TO BASE+7999:POKE I,0:NEXT
50 FOR I=1024 TO 2023:POKE I,16:NEXT I
60 GOTO 200
70 REM
80 REM
90 xx=INT(HPSN/8)
100 ROW=INT(VPSN/8)
110 LINE=VPSN AND 7
120 BYTE =BASE+ROW*320+8*xx+LINE
130 BIT=7-(HPSN AND 7)
140 PO... |
10 for j=0 to 39:read x:poke 14336+j,x:next
20 poke 646,0:poke 53280,1:poke 53281,1:print"{clear}";
30 poke 53272,31
40 poke 55,0:poke 56,56:clr
50 get q$:if q$="" goto 50
60 l=asc(q$)-64
70 a$="":for j=1 to l:a$=a$+chr$(rnd(0)*5+64):next
80 a$=a$+a$+a$+a$+a$+a$+a$+a$:m=len(a$)
90 print "{home}";:for j=1 to 960... |
1 %TITLE "POST - Post Adjustments"
%SBTTL "PR_POST_ACCRUALADJUST"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1992 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... |
2 DIM G(2000) 'Программа построения поверхностей!
4 DEFFNZ(X,Y)=(60^(2/3)-(X^2+Y^2)^(1/3))^(3/2) 'L=0
5 'DEFFNZ(X,Y)=SQR(20^2-(SQR(X^2+Y^2)-35)^2) 'L=0
6 'DEFFNZ(X,Y)=10*COS(.24*SQR(X^2+Y^2)) 'L=0
7 'DEFFNZ(X,Y)=COS(.1*X)*COS(.1*Y)*10 'L=0
8 'DEFFNZ(... |
10 REM MATRIX FUNCTION RND2$()
20 OPTION BASE 0
30 MAT A$ = RND2$(5%,4%,10%,"0")
40 PRINT "MATRIX A"
50 MAT PRINT A$
60 OPTION BASE 1
70 MAT B$ = RND2$(4%,5%,7%,"0")
80 PRINT "MATRIX B"
90 MAT PRINT B$
99 END
|
5 s=54272
10 forl=stos+24:pokel,0:next
20 pokes+5,88:pokes+6,195
30 pokes+24,15
40 readhf,lf,dr
50 ifhf<0thenend
60 pokes+1,hf:pokes,lf
70 pokes+4,33
80 fort=1todr:next
90 pokes+4,32:fort=1to50:next
100 goto40
110 data25,27,150,128,214,250,-1,-1,-1
120 data25,177,250,25,177,250
130 data25,177,125,28,214,125
140 data32,... |
10 poke 56,8192/256:clr
14 poke 53265,peek(53265) or 32
15 poke 53272,peek(53272) or 8
24 ce=16*0+3
25 for j=1024 to 2023:poke j,ce:next
29 for j=49152 to 49171:read x:poke j,x:next
30 sys 49152
80 for i=0 to 7:p2(7-i)=2^i:next
90 x=160:y=100
100 pe=peek(56320)
101 r=pe and 8
102 d=pe and 2
103 l=pe and 4
... |
' Copyright (C) 2021 by Kevin D. Woerner
''-' =KDW= ################# BUILDER $KWROOT/0lib/vkkcp.sh ##################
''-' =KDW= ######### SOURCE $KWROOT/codekdw/kw-lib/Kwelements.fwipp #########
''-' =KDW= #### THIS FILE CAN BE OVERWRITTEN BY KEVIN D. WOERNER OR HIS #####
''-' =KDW= ############ MINIONS AT *ANY* T... |
10 lo=96:hi=127
20 for lp=lo to hi
30 print lp, chr$(lp)
40 get a$:if a$="" then 40
50 next lp
60 if lo=161 then stop
70 lo=161:hi=191
80 goto 20
|
0 A=0:B=0:DIMA$(20):MAX=20
1 BC=12: REM BORDER COLOR
2 TC=11: REM TEXT COLOR
3 HL=5 : REM HIGHLIGHT COLOR
4 LO$="O":HO$="{cm y}":RO$="P"
5 LV$="{cm h}": RV$="{cm n}"
6 LU$="L":HU$="{cm p}":RU$="N"
10 PRINT CHR$(147)
12 REM
20 POKE 646,3:POKE53280,0:POKE53281,0
30 P=1:X=15:Y=2 :MIN=1:REM MAX=1
100... |
4 print "k" : rem ** clear screen ***
5 rem *** videogame effect ***
10 for m = 0 to 24 : poke 54272 + m,0 : next
20 m = 54272
30 poke m +24,15
40 poke m +5,136: poke m + 6,240
50 for x = 5 to 255 step 20
60 poke m+1,x
70 poke m + 4,33
80 for k = 1 to 15 : next k : next x
90 for z = 255 to 6 step - 20
100 poke m+1,z
11... |
CLS
PRINT
PRINT "BIG BEN"
'PLAY SCALE IN 7 DIFFERENT OCTAVES
SCALE$ = "BGADP8DABGP8"
PLAY "T100"
FOR i% = 0 TO 1
PLAY "X" + VARPTR$(SCALE$)
NEXT i%
CLS
PRINT
PRINT "OLD MCDONALD"
'PLAY SCALE IN 7 DIFFERENT OCTAVES
SCALE$ = "GGGDEEDP8BBAAGP8DGGGDEEDP8BBAAGP8 "
PLAY "T150"
FOR i% = 0 TO 0
... |
10 REM IF STATEMENT WITH INVALID SUBSTATEMENT
20 IF A < 7 THEN DEF FND(A)=A+20
99 END
|
10 : CLS : PRINT "Volumenintegral IIf(x,y)dxdy der bivariaten"
15 : PRINT "Standard-Normal-Verteilungsfunktion bei r=0"
17 : PRINT "von Dietmar Schrausser, SCHRAUSSER 2014:"
20 : pi = 3.14159265#
30 : e = 2.71828182#
35 : sx = 0: sy = 0
40 : INPUT "a[x]"; a1
50 : INPUT "b[x]"; b1
60 : INPUT "a[y]"; a2
70 : INP... |
REM Pawel
REM Vier gewinnt.....................................................
DIM SHARED feld(5, 6)
SCREEN 12
CLS
wechsel = 1
REM Spielfeld........................................................
LINE (25, 80)-STEP(430, 380), 15, B
FOR zeile = 20 TO 70 STEP 10
FOR spalte = 10 TO 70 STEP 10
CIRCLE (spalte * 6, zeile ... |
10 dim pm$(20,1)
20 a$="hello":b$="world":h=0
40 i=0:pm$(i+h,i+1)=a$:printchr$(i+65)
50 i=1:pm$(i+h,0)=b$:printchr$(i+65)
60 print pm$(0,1),pm$(1,0) |
1 %TITLE "Units Register"
%SBTTL "AD_MAIN_REGUNIT"
%IDENT "V3.6a Calico"
FUNCTION LONG AD_MAIN_REGUNIT(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1987 BY
!
! Computer Management Center
! Idaho Falls, Idaho.
!
! This software is furnished under a lice... |
'Programa que dibuja perspectivas para hacer rutas.
'Por Alvaro Gonzalez Ferrer (c) 1999, AGF
'Version mejorada - LA PINTA ALTERNADAMENTE
CLS
PRINT "RUTA.BAS"
PRINT
PRINT "Programa que dibuja perspectivas para hacer rutas."
PRINT "Por Alvaro Gonzalez Ferrer (c) 1999, AGF"
PRINT "Luego, pueden ser capturadas a P... |
DEFINT A-Z
DECLARE FUNCTION GETPSP%
DIM Array%(0 TO 255)
DEF SEG
Temp& = 25000
'DEF SEG = GETPSP
'Temp& = 39000
GOTO AutoSearch
DO
SCREEN 0
Temp& = Temp& + 250
PRINT Temp&
FOR I& = Temp& TO Temp& + 250
IF PEEK(I&) = 0 THEN
COLOR 4
ELSEIF PEEK(I&) = 9 THEN
COLOR 5
ELSE
COLOR 7
END IF
PRINT PEEK(I&);
NEXT I&
... |
Attribute VB_Name = "hour10"
Option Explicit
'by Geovani Montoya (DA at KRB1)
Sub hour10()
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = False
Dim dtDate As Date, dtStartDate As Date, dtEndDate As Date
Dim iter As Integer
Dim stIter As String
Dim buil... |
100 CLS
110 REM SNAKE GAME
120 CLEAR 300
130 DIM X,Y,X1,Y1,S,T,H,OH,D,K,G,F,U
140 DIM D(31,9),V(5),W(5),K(255):K(87)=1:K(83)=2:K(90)=3:K(65)=4:K(32)=5
150 AH=10000
160 LE=3
170 INPUT"INPUT LEVEL (1-4)";LE
180 IF LE>4 OR LE<1 THEN 170
190 RESTORE:FOR I=1 TO 4:READ V(I),W(I):NEXT
200 GOSUB1340
210 AA=0:MAN=5:ME=0
220 X=3... |
Attribute VB_Name = "TableManager"
Option Explicit
'////////////////////////////////////////////////////////////////////////////////////////////
'
'////////////////////////////////////////////////////////////////////////////////////////////
Enum 行 'シートの行番号に名前をつける
祝日行 = 6
予定行 = 8
スタッフ1 = 10
スタッフ2 = 12
... |
'******** DemoFC.Bas - demonstrates encrypting a file with a password
'Copyright (c) 1988 Ethan Winer
'IMPORTANT: do NOT forget your password!
DEFINT A-Z
DECLARE SUB FileCrypt (FileName$, PassWord$)
DECLARE FUNCTION DOSError% ()
DECLARE FUNCTION WhichError% ()
CLS
LINE INPUT "File to encrypt/decrypt: ", F$
LINE I... |
0 POKEV,A:POKEV,.:GOTO0
0 V=54296:A=15:GOTO0
|
100 REM AGE
110 GOSUB 1100
120 FOR A=11 TO 99 STEP 2
130 LET N=A
140 LET X=0:LET Y=2:GOSUB 1700:PRINT "age being tested ";A
150 GOSUB 250
160 IF T=1 THEN GOTO 230
170 LET N=1980-A
180 GOSUB 250
190 IF T=1 THEN GOTO 230
200 LET A1=INT(A/10)
210 LET N1=N-10*INT(N/10)
220 IF A1=N1 THEN PRINT"age = ";A:PRINT"year of birth ... |
DEFINT A-Z
DECLARE FUNCTION SCREENMODE%
DECLARE FUNCTION READBIT% (BYVAL Value%, BYVAL Bit%)
DECLARE FUNCTION TABLE256% (BYVAL Segmet%, BYVAL Offset%, BYVAL Index%)
DIM TEstTable AS STRING * 256
OPEN "NEWGAME.TAB" FOR BINARY AS #1
GET #1, , TEstTable
CLOSE
PRINT VARSEG(MemLoc%)
PRINT VARPTR(MemLoc%)
PRINT TABLE256%(V... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1802999282
Begin Form
RecordSelectors = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
PictureAlignment =2
... |
WHILE TRUE
begin_deg = VR(100)
end_deg = VR(101)
range_deg = VR(101) - VR(100)
dif_h = VR(102)
safe_pos = VR(211)
mode = VR(7)
wp_l = VR(302)
wp_w = VR(303)
'rectangle with corner mode
IF mode = 8 THEN
rec_l = VR(170)
rec_w = VR(171)
nturns = VR(172)
... |
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = N... |
#COMPILE EXE
#DIM ALL
#DEBUG ERROR ON
' include the common display library
#INCLUDE "win32api.inc"
#INCLUDE "..\Libraries\CommonDisplay.inc"
#INCLUDE "..\Libraries\PB_FileHandlingRoutines.inc
'
FUNCTION PBMAIN () AS LONG
' the main PB function that is the first to be executed
funPrepOutput("Array sorting",0,0,40,12... |
10 CLS
20 LINE INPUT"FILE: ";F$
30 OPEN "R",#1,F$,1
40 FIELD #1,1 AS A$
60 TRANS=1:TL=0
70 GET #1,TRANS
80 IF ASC(A$)=255 THEN PRINT:PRINT"EXEC ADDR @";:GET #1,TRANS+3:E=ASC(A$)*256:GET #1,TRANS+4:E=E+ASC(A$):PRINT HEX$(E)," TL $";HEX$(TL+5):END
90 IF ASC(A$)<>0 THEN PRINT:PRINT"PREAMBLE/POSTAMBLE ERROR":END
100 GET #... |
1 %TITLE "Depreciation Account Table"
%SBTTL "AD_MAST_ACCOUNT"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987 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 inclusi... |
Version =20
VersionRequired =20
Checksum =608774247
Begin Report
Modal = NotDefault
RecordSelectors = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
OrderByOn = NotDefault
AllowDesignC... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =4020
... |
CLS
PRINT "name le Area by thitima"
READ name$, coreer$, years
PRINT "my name is="; name$; ""
PRINT "i am a=;coreer$"
PRINT " i am="; years; "yeurs old"
DATA thitima,student,18
END
|
'Battle Ship 64 Cobalt
'Started 11/23/2018(30mins)
'Cobalt David
'V0.0a inital build(11/23/2018)(45mins)
'inital types and diminsions in place
'V0.0b build(11/24/2018)(30mins)
'added Title screen
'loaded sprite sheet
'V0.1a First Run Build(11/27/2018)(300mins)
'Added\Finished ship deployment
'added auto deployment for ... |
SCREEN 12
DRAW "bm 320,240"
10
FOR zz% = 1 TO 640 STEP 1
LET c% = c% + 1
IF c% = 17 THEN LET c% = 1
LINE (320, 240)-(zz%, 1), c%
NEXT zz%
FOR zz% = 1 TO 480 STEP 1
LET c% = c% + 1
IF c% = 17 THEN LET c% = 1
LINE (320, 240)-(640, zz%), c%
NEXT zz%
FOR zz% = 640 TO 1 STEP -1
LET c% = c% + 1
IF c% = 17 THEN LET c% = 1
LIN... |
' LrgShow (.PHG displayer)
' ========================
'
' Copyright 1997 Philip Blyth
'
' Licensed under the Apache License, Version 2.0 (the "License");
' you may not use this file except in compliance with the License.
' You may obtain a copy of the License at
'
' http://www.apache.org/licenses/LICENSE-2.0
'
' Unle... |
Version =20
VersionRequired =20
Begin Form
AllowEditing = NotDefault
AutoCenter = NotDefault
AllowDeletions = NotDefault
AllowAdditions = NotDefault
FilterOn = NotDefault
AllowEdits = NotDefault
ViewsAllowed =1
Width =8445
ItemSuffix =39
Left =3540
Top =2700
Right =12360... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-829572447
Begin Report
LayoutForPrint = NotDefault
Modal = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
PageHeader =1
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavio... |
1 REM ACEYDU -- ACEY DUCEY CARD GAME
2 REM
3 REM FROM 101 BASIC COMPUTER GAMES
4 REM DIGITAL EQUIPMENT CORPORATION
5 REM MAYNARD, MASSACHUSETTS 01754
6 REM
7 REM 1975
8 REM
9 REM DESCRIPTION
10 REM
11 REM THIS IS A SIMULATION OF THE ACEY DUCEY CARD GAME. IN THE
12 REM GAME, THE DEALER (THE COMPUTER) DEALS TWO... |
10 WIDTH 255
15 REM CLEAR SCREEN
20 PRINT CHR$(26)
25 REM TURN OFF CURSOR
30 PRINT CHR$(27)+"C4"
35 REM MOVE CURSOR TO THE HOME POSITION
100 PRINT CHR$(27)+"="+CHR$(32)+CHR$(32);
105 REM READ IMAGE FILE 80 BYTES AT A TIME (TWICE PER LINE)
110 OPEN "R",1,"SANTA.TXT",80
120 FIELD 1,80 AS A$
130 FOR Y=0 TO 99
1... |
DEFINT A-Z
'SVGA VESA Demo by Dmitry Brant.
'Use freely
'To run this program, you must load QuickBasic with the following
'command line:
'
' QB /L LIBVESA.QLB
'
' (assuming that LIBVESA.QLB is in the same directory as QuickBasic)
'The QLB file already contains the standard QB.LIB, so don't worry.
'$... |
1 REM BOUNCING BALL
10 CLEAR 0;X=1;Y=24;H=-1;V=1
20 MOVE 0,0
30 PLOT 1,63,0;PLOT 1,0,47
40 PLOT 1,-63,0;PLOT 1,0,-47
50aWAIT;IF X=1 OR X=62 WAIT;H=-H
60 WAIT;IF Y=1 OR Y=46 WAIT;V=-V
70 WAIT;PLOT 15,X,Y
80 WAIT;X=X+H;Y=Y+V
90 WAIT;PLOT 13,X,Y;GOTO a
|
30 LET X=5
35 PRINT X
36 PRINT 123
40 FOR I=1 TO 3
50 PRINT "HEY\nDIDDLE"
51 FOR J=1 TO 3
52 PRINT J
54 NEXT J
60 NEXT I
|
10 rem
12 input x1, y
13 if x1 < y then goto 15
14 zee = x1 - y
11 goto 16
15 zee = x1 + 2 * y
16 print x1, y, zee
17 for i = 1 to 16 step 5
18 print i
19 next i
20 input st%
21 print "$", st%
22 input x
23 if y >= x1 then x = y^3
24 print x1, #
25 end |
atom=H
contraction shell=S num_primitives=3 num_coefficients=1
7.034063 0.070452
1.064756 0.407826
0.236559 0.647752
atom=He
contraction shell=S num_primitives=3 num_coefficients=1
13.626736 0.080241
1.999349 0.409143
0.382993 0.657278
atom=Li
contraction shell=S num_primitives=3 num_coefficients=1
35.04615 0.073760
5.... |
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... |
Operation =1
Option =0
Where ="(((dbo_CompanyEmployeeShift.ShiftEnd) Is Null))"
Begin InputTables
Name ="dbo_CompanyEmployeeShift"
Name ="dbo_CompanyEmployee"
Name ="dbo_Station"
End
Begin OutputColumns
Expression ="dbo_CompanyEmployeeShift.ID"
Expression ="dbo_CompanyEmployeeShift.CompanyEmployeeI... |
10 CLEAR 200, &H3EFF
20 LOADM "TEST.BIN"
30 DEFUSR0=&H3F00
40 PRINT "USR0(5)=";USR0(5)
|
''
'' blitrot.bas - Using uglBlitMskRotScl to rotate and
'' scale just part of a bitmap
''
''
''
DEFINT A-Z
'$INCLUDE: '..\inc\ugl.bi'
'$INCLUDE: '..\inc\kbd.bi'
'$INCLUDE: '..\inc\font.bi'
CONST xRes = 320
CONST yRes = 200
CONST cFmt = UGL.8BIT
CONST FALSE = 0
CONST PAGES = 1
TYPE EnvType
hFont ... |
DECLARE SUB FILECHK (fdrive$, fpath$, filen$, found!)
DECLARE SUB LASTPAGE ()
DECLARE SUB CLIMFILES (d4edit$, D7EDIT$, D13EDIT$, D11EDIT$, FILEPATH$())
DECLARE SUB CLIMSAVE (FILEPATH$())
DECLARE SUB EVAPIND (SELECCT$, SELECST$, fromsub!)
DECLARE SUB GENCLIMATE ()
DECLARE SUB CLIMATE (SELECST$, SELECCT$, CLIM$)
DECLARE ... |
1 %TITLE "Product Quantity Status Report"
%SBTTL "OE_RPRT_REGPROD"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be
! copied only in accordance with terms of such license and with
! the inclus... |
10 SCREEN 2:COLOR 1,15,4
20 FOR I=1 TO 1000:NEXT
30 ::::'Пустой оператор!
40 COLOR 15,1,4
50 FOR I=1 TO 1000:NEXT
|
DECLARE FUNCTION REPLACE$ (inputstr$, oldstr$, newstr$)
ON ERROR GOTO doneerr
OPEN "input3.txt" FOR INPUT AS #1
OPEN "output3.txt" FOR OUTPUT AS #2
CLS
item = -1
room = -1
WRITE #2, "bldg", "room", "asset", "qty", "desc", "sn", "model", "cat", "stat", "cond"
DO UNTIL EOF(1)
LINE INPUT #1, a$
IF INST... |
1 REM clock.bas
2 REM by Scott Baker, http://www.smbaker.com/
3 REM Demonstrates use of BQ4845 RTC on Z80 RC2014 computer
5 REM set 24-hour mode
6 OUT &HCE, 2
10 LS=999
20 GOSUB 1000
30 if (LS = S) GOTO 100
40 LS = S
50 GOSUB 2000
60 print T$
70 REM for the display board, output seconds on the LEDs
80 OUT 0, S
100 GO... |
110 REM MANDELBROT SET - BWBASIC
120 REM ITERATES Z _ Z^2 + C WHERE C IS IN THE REGION TO EXPLORE
130 DIM C$(72)
140 C$=".-_+><!=:*35CV49FO6D#AZUGS02$%P&WXEQH8B@KRNM "
150 REM DIMENSIONS OF THE PRINTED PLOT (CHARACTERS)
160 X1=69
170 Y1=40
180 REM MAXIMUM NUMBER OF ITERATIONS
190 M = LEN(C$) * 10
200 REM CENTER COORDIN... |
110 IF 12 > 11 THEN PRINT "ok1"
120 IF 12 < 11 THEN PRINT "fail1"
130 IF 12 < 11 THEN PRINT "fail2"
140 IF 12 > 11 THEN PRINT "ok2"
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily =105
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =... |
10 REM TEST OF COMMENTS
20 LET A = 1 ' First comment
30 LET B=SQR(2^2) ' Second comment
40 REM Remark with comment ' and here it is
99 END
|
DECLARE SUB MakeLookUps ()
DECLARE SUB DrawParticles ()
DECLARE SUB UpdateParts ()
DECLARE SUB LoadShape (sh AS STRING)
'------------------- Defines -------------------'
TYPE tPart
x AS SINGLE
y AS SINGLE
z AS SINGLE
nx AS SINGLE
ny AS SINGLE
nz AS SINGLE
lx AS SINGLE
ly AS S... |
10 !---------------------------------------------------------------&
! &
! Sku Maintenance Program &
! &
! ACCTAB.B2S V1.0 December 1986 &
! &
! Author - FRANK STARMAN, Computer Management Center, Inc. &
! &
! Files-PWJACC.DAS -ISAM &
! &
!-------------------------... |
10 REM **************************
20 REM a sample basic file
30 REM **************************
40 INPUT "Starting value" ; a
50 PRINT a ; " " ;
60 a = a + 1
70 GOTO 50
|
10 PRINT "B is for BASIC"
20 END
|
Operation =1
Option =0
Where ="(((dbo_ProjectComponentHeader.ProofSentDate) Is Not Null) AND ((dbo_ProjectCompo"
"nentHeader.ArtArrivedDate) Is Not Null) AND ((Year([proofSentDate]))=Year(Date()"
")) AND ((Month([proofSentDate]))=Month(Date())))"
Begin InputTables
Name ="dbo_ProjectComponentHeader"
End
Beg... |
REM Joshua Hipple - Project 2.13
REM Calculate deductions on gross pay, output net pay.
CLS
GOSUB GetInput
GOSUB CalcDeductions
GOSUB OutputPay
END
REM ** GetInput Subroutine **
REM ** Get user to input gross pay **
GetInput:
CLS
INPUT "What is your gross pay"; GrossPay
RETURN
REM ** CalcDeductions Subroutin... |
100 DEF FNR(X)=INT(X*1E3+0.5)/1E3
110 DIM C(20,20), U(20,20), B(20), P(20)
120 READ N,V
130 MAT C = ZER(N,N)
150 MAT B = ZER(N)
170 LET C(1,1) = 1
180 LET C(N,N) = 1
190 LET B(1) = V
200
210 READ I,J,R
220 IF I = -1 THEN 270
230 LET C(I,J) = 1/R
240 LET C(J,I) = 1/R
250 GOTO 210
260
270 FOR I = 2 TO N-1
280 LET S = 0
2... |
10 base_species$ = "FeHSO4+"
20 base_species_charge$ = "+"
30 base_ligand$ = "HSO4-"
40 prefix$ = "Fe"
50 ligand_charge$ = "-"
60 n1 = 6
70 dim ligand$(n1)
80 data "HSO4","DSO4","TSO4","H[34S]O4","D[34S]O4","T[34S]O4"
90 restore 80
100 for i = 1 to n1
110 read ligand$(i)
120 next i
200 for i = 1 to n1
210 lhs$ = base_... |
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... |
_TITLE "1sim software application"
TYPE comp
adc0 AS DOUBLE
adc1 AS DOUBLE
adc2 AS DOUBLE
adc3 AS DOUBLE
adc4 AS DOUBLE
adc5 AS DOUBLE
adc6 AS DOUBLE
adc7 AS DOUBLE
adc8 AS DOUBLE
adc9 AS DOUBLE
adc10 AS DOUBLE
adc11 AS DOUBLE
adc12 AS DOUBLE
adc13 ... |
DIM A%(10)
PRINT "Tirage et sort..."
FOR I%=0 TO 10
A%(I%)= RND(100)
PRINT A%(I%);
NEXT I%
PRINT
'
Ptr= VARPTR(A%(0))
Get_Size(Ptr,Size,Addr)
PRINT : PRINT "Transfert..."
Transfert(10,Size,Addr)
'
PRINT : PRINT : PRINT "Reste..."
FOR I%=0 TO 10
PRINT T%(I%);
NEXT I%
END
'
DEF PROC Transfert(N%,... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =14768
DatasheetFontHeight =11
ItemSuffix =288
Right =13515
Bottom =7605
D... |
100 ' LINE sample
110 SCREEN 0,0:CLS 3
120 IF INKEY$<>"" THEN 120
130 X1=RND*639:Y1=RND*199
140 X2=RND*639:Y2=RND*199
150 CL=RND*6+1:MD=INT(RND*3+1)
160 ON MD GOTO 170,180,190
170 LINE(X1,Y1)-(X2,Y2),CL:GOTO 200
180 LINE(X1,Y1)-(X2,Y2),CL,B:GOTO 200
190 LINE(X1,Y1)-(X2,Y2),CL,BF
200 IF INKEY$="" THEN 130
210... |
1inputr:fory=-rtor:forx=-rtor:s=s-(x*x+y*y<=r*r):nextx,y:?s
|
CLS
j = 1
l = 50
a$ = "Good evening, Welcome to Singapore. "
a$ = a$ + "Now to your right is the temple of "
a$ = a$ + "doom and to your right is hell "
FOR i = 1 TO LEN(a$)
LOCATE 15, l: PRINT MID$(a$, j, i)
LOCATE 15, 28: PRINT "Û": LOCATE 15, 52: PRINT "Û"
FOR k = 1 TO 500: NEXT k
LET l = l - 1
I... |
10 REM Test the FORGET statement
11 OPTION BASE 1
20 DIM A(10), B(8)
21 FOR I = 1 TO 10
22 LET A(I) = 1
23 NEXT I
24 FOR I = 1 TO 8
25 LET B(I) = 8 - I
26 NEXT I
30 ARR PRINT A
31 ARR PRINT B
40 ARR FORGET A,B
90 ARR PRINT A
91 ARR PRINT B
99 END
|
' THE
' DUMB
' MALL
' ADVENTURE
' BY
' CHAD LOFTIS
' AND
' TOBY... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =1423885417
Begin Report
LayoutForPrint = NotDefault
Modal = NotDefault
DividingLines = NotDefault
OrderByOn = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlin... |
@ERASE
@INIT 10
10 A = pioout 9
11 A = pioset 9
12 A = auxdac 200
13 A = lcd "TEST "
14 A = nextsns 20
15 W = 1
16 $0 = "@0008 = 07d0 03E8"
17 A = psset 2
18 RETURN
@SENSOR 100
100 IF W = 0 THEN 110
101 W = 0
102 RETURN
110 A = sensor $0
111 A = lcd $0[4]
112 A = nextsns 20
113 W = 1
114 RETURN
|
Attribute VB_Name = "App"
Option Explicit
Sub AppRun()
'---Purpose: This sub will create an array from the text box, see if it contains matches in the dictionary
'and then will pull the infromation from the dictionary onto the Users' clipboard
Application.ScreenUpdating = False
' ---VARIABLES--- '
Dim text, Ma... |
mode_count=0
start:
'*******************************detect axis action with MPOS***************
k=0
a=MPOS AXIS(x1_axis_num)
b=MPOS AXIS(y_axis_num)
c=MPOS AXIS(z_axis_num)
d=MPOS AXIS(rx_axis_num)
e=MPOS AXIS(rz_axis_num)
f=MPOS AXIS(l1_axis_num)
g=MPOS AXIS(l2_axis_num)
h=VR(602)
WA(499)
... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1195991264
Begin Report
LayoutForPrint = NotDefault
Modal = NotDefault
DividingLines = NotDefault
OrderByOn = NotDefault
AllowDesignChanges = NotDefault
PageHeader =1
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
... |
10 :REM'T2FD Tilted Terminated Folded Dipole - 23 MAY 08
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
50 COMMON EX$,PROG$
60 DIM B(9)
70 DIM L(9)
80 PI=4*ATN(1)
90 GOTO 120
100 :REM'.....clear acreen to bottom
110 VIEW PRINT LN TO 24:CLS:VIEW PRINT:LOCATE LN:RETURN
120 :REM'....... |
10 INCLUDE "abc.bas"
|
Test1:
PRINT "Hello";
GOSUB PrintSep
PRINT "world"
GOTO Test2
PrintSep:
PRINT ", ";
RETURN
Test2:
n = 3
GOSUB CountDown
GOTO Test3
CountDown:
PRINT n
IF n > 0 THEN
n = n - 1
GOSUB CountDown
END IF
RETURN
Test3:
' Example from Microsoft QuickBASIC BASIC: Langua... |
1000 DEF FNB$(A)=RIGHT$("0"+HEX$(A),2)
1010 AD=&H7000
1020 READ D
1030 IF D<>-1 THEN POKE AD,D:AD=AD+1:GOTO 1020
1040 POKE &HFD94,&H80:POKE &HFD95,&H08
1050 POKE &H7002,&H00
1060 POKE &H7003,&H0F
1070 EXEC &H7000
1080 D=PEEK(&H7004)
1090 IF D=0 THEN PRINT "OK":END
1100 PRINT "ERROR ON ";FNB$(D);"000"
1110 PRINT "ADDR="... |
100 poke56,53:poke55,128:?"{clear}"
110 gosub1290
120 gosub1340
130 gosub990
140 :
150 pokev0,sx:pokev1,sy
160 a=peek(v4)+peek(v5):if(peek(v4)andz1)+(peek(v5andz1)then860
170 geta$:ifa$=""then230
180 ifa$="{f1}iithenpoke53269,0:goto120 :rem 92
190 ifa$o"{f7}iithen230 :rem 152
200 t$=ti$
210 geta$:ifa$=iimth... |
'SerWar By Robert Shoemate/Cow Eater
'must be loaded on 2 computers w/Serial Cable attached to both to work
'Use arrows to move face and press SPACE to attack other player whil on
'top of thier Guy.
'!!!This Was Written As An Experemental Serial Cable Game in 1996 by
'Robert Shoemate Age:13
life = 50
lif... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
... |
1000 COLOR 1,7,4:CLS:SOUND 1000,3:SOUND 2000,3:KEY OFF
1010 PRINT:PRINT
1020 PRINT TAB(18)"***** FOURIER SERIES FROM DATA POINT *****"
1030 PRINT
1040 PRINT TAB(12)"This program determines coefficients for waveforms with"
1050 PRINT TAB(12)"half-wave symmetry.
1060 PRINT
1070 PRINT TAB(24)"By David Beard, 13 F... |
'**********************************************************************
'* Purpose: Create a logging window to log messages
'* Input: none
'* Output: none
'**********************************************************************
Function CreateDebugLogWindow()
Dim DebugLogWindow
Set DebugLogWindow = CreateObject("... |
100 dim c(50),a(1100)
107 s = 10
108 nstop = 1000000
110 input n
120 for d = 1 to nstop
130 in = 1
132 for i = 2 to n
134 if a(i) < a(in) then in = i
136 next i
137 ahat = 9.6/(n-9.6)
138 gamma = ahat/2.4
139 tt = (-1/gamma)*log(rnd(1))
140 clock = a(in)
145 a(in) = a(in)+tt
150 j = 0
160 j = j+1
170 if j = s+1 then k ... |
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... |
atom=H
contraction shell=S num_primitives=3 num_coefficients=1
33.86500 0.0254938
5.094790 0.190373
1.158790 0.852161
contraction shell=S num_primitives=1 num_coefficients=1
0.325840 1.000000
contraction shell=S num_primitives=1 num_coefficients=1
0.102741 1.000000
atom=He
contraction shell=S num_primitives=3 num_coeff... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.