text stringlengths 7 5.36M |
|---|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily =127
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Datashe... |
Attribute VB_Name = "FINAN_DERIV_LOOKBACK_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.
'***********************************************************... |
Operation =1
Option =0
Where ="(((IIf(([PROOFAPPROVEDDATE] Is Not Null) And (([ARRIVALDATE] Is Not Null) Or ([O"
"rderOption]=3) Or (Nz([ORDEROPTION],0)=0)),True,False))=True))"
Begin InputTables
Name ="viewProjectComponentPressLiveOnly"
End
Begin OutputColumns
Expression ="viewProjectComponentPressLiveOnl... |
'IF Copyright$ = "Stach Stasiak 19 XII-2000" THEN Program is COOL
'ELSE
'Program is KICHA
'END IF
'wykorzystanie choc czesci programu do uzyrku poza wlasnego i kopiowanie
'bez pozwolenia SUROWO ZABRONIONE!
SCREEN 12
WIDTH , 60
WINDOW (0, 0)-(639, 479)
poczatekY = 10
szerokosc = 10
wysokosc = 10
OPEN "splash.gft" FOR IN... |
10 a$ = "press <cr> to exit."
20 adr = 679: rem gpu address
30 gosub 200: X = 8: y=8
40 rem display message
50 for a=1 to len(a$)
60 poke adr+4,x: poke adr+8,y
70 poke adr+9,asc(mid$(a$,a,1))
80 for b=10 to 17
90 poke adr+b,255
100 next b
110 poke adr, 5
120 x=x+9
130 next a
140 rem wait until <cr> key is pressed
150... |
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... |
003 poke 53280, 6 : rem outer border = dark blue
006 poke 53281, 0 : rem background = black
010 gosub 500
020 v=53248 : rem VIC
030 poke v+21,12 : rem Enable sprite 2 and 3
035 poke v+41,7 : rem Smiley color = yellow
037 poke v+42,15 : rem Frowney color = grey
040 poke 2042,13 : rem Sprite 2 data from block 13
045 pok... |
10 REM Adventures Into The Mind's Eye
15 REM by Scott Lawrence - yorgle@gmail.com
19 VER$ = "0.15 2018-Nov-17"
20 DEBUG = 0 : REM enable debug output
21 TM = 100000 : 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... |
CLS
SCREEN 12
'set pon's
DIM SHARED CTR AS SINGLE
DIM SHARED PONX(1 TO 2000), PONY(1 TO 2000)
DIM SHARED REW(1 TO 2000) AS SINGLE
OPEN "A:\LOGO.DAT" FOR INPUT AS #1
FOR CTR = 1 TO 508
INPUT #1, PONX(CTR), PONY(CTR), REW(CTR)
'PRINT PONX(CTR), PONY(CTR)
NEXT CTR
CLOSE #1
ENDFLAG$ = "NO"
SET = 1
OFFSET = 2
... |
Attribute VB_Name = "modMsgPopUp"
Option Explicit
Public m_iActiveAlertWindows As Long
Private m_iBackColor As Long
Function Get_PopUp_Color() '++Colour Choice ++
m_iBackColor = RGB(160, 195, 255)
' Select Case Index
' Case 0 '/* Yellow
' m_iBackColor = &HC0FFFF
' Case 1 '/* Blue
' m_iBackColo... |
1 %TITLE "Recalculate Balance Forward Subroutine"
%SBTTL "AR_FUNC_REBAL"
%IDENT "V3.6a Calico"
FUNCTION INTEGER AR_FUNC_REBAL(CUSNUM$)
!
! COPYRIGHT (C) 1994 BY
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accord... |
PRINT "Vote count:"
OPEN "votes.csv" FOR INPUT AS 1
WHILE NOT EOF(1)
INPUT #1, state$, count%
PRINT state$; " provided"; count%; " votes"
WEND
CLOSE #1
PRINT
OPEN "expenses.txt" FROM APPEND AS 2
PRINT #2, "butter", 450
PRINT #2, "cashew", 950
CLOSE #2
PRINT "Alice in Wonderland:"
OPEN "alice.txt" FOR INPUT AS 2
DO WH... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
SCREEN 12
DIM X AS INTEGER, Y AS INTEGER, CODE AS INTEGER
X = 200: Y = 200
DO
K$ = INKEY$ 'schiivaem simvol
CODE = INP(&H60) 'shitivaem skan-kod cherez porti
LOCATE 1, 1
... |
100 REM LISTPER Program.
110 REM Prints a List of Persons
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 OPTION BASE 0
140 DEFINT A-Z
600 REM Titles
610 TITLE$ = "List the Persons File"
620 TITLE$ = TITLE$ + " ON DISPLAY"
700 REM Terminate if not called from the Menu
710 IF COP... |
Attribute VB_Name = "MOD_HTMLReports"
Option Explicit
Const strModule As String = "(Module) MOD_HTMLReports"
Public Function CreateReportHeader(Title As String, _
Optional Datestring As String, _
Optional ReportDescription As String, _
... |
0 REM __CODE__
10 RANDOMIZE USR (PEEK VAL "23635"+VAL "256"*PEEK VAL "23636"+VAL "5")
|
Attribute VB_Name = "modGetJSRun"
Option Explicit
Public Function GetJSRun(ByVal JSPath As String, Optional ByVal UA As String = "", Optional ByVal bolShowForm As Boolean = False) As String
'<EhHeader>
On Error GoTo GetJSRun_Err
'</EhHeader>
100 If UA = "" Then
102 UA = "Mozilla/5... |
DECLARE SUB Mod.OnIRQ (Args() AS ANY)
DECLARE SUB Mod.OnNMI (Args() AS ANY)
DECLARE SUB Mod.Set (Args() AS ANY)
DECLARE SUB S.Free (h AS INTEGER)
DECLARE SUB Run.Sub (SubName$, Args() AS ANY)
DECLARE SUB Get.Sub (SubName$, Args() AS ANY)
DECLARE SUB Mod.Asm (Args() AS ANY)
DECLARE SUB Mod.Def (Args() AS ANY)
DE... |
X=1
FOR I=1 TO 0
PRINT "FAILED"
X=0
FOR J=0 TO 4
PRINT "FAILED"
X=0
NEXT J : NEXT I
IF X THEN PRINT "SUCCESS"
END
|
1 REM ************
2 REM * CALENDAR *
3 REM ************
10 HOME
20 PRINT
30 DIM D(12),M$(12)
40 FOR I = 1 TO 12
50 READ D(I)
60 NEXT I
70 FOR I = 1 TO 12: READ M$(I): NEXT I
80 VTAB 1
90 FOR I = 1 TO 40: PRINT "-";: NEXT I
100 HTAB (14): VTAB (2): INPUT "MONTH(1-12):";M
110 PRINT : HT... |
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
DefaultView =0
ScrollBar... |
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... |
1 COLOR 15,3
2 VDP(16+1)=3:OUT &H9A,64:OUT &H9A,3
|
' Copyright (c) 1988, 1989 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
DECLARE SUB USERFUNC (X, FX)
SUB MINIMA2 (A, B, EPS, MAXITER, NITER, XMIN, FMIN) STATIC
' Brent's method minimization subroutine
' Input
' A = initial X search value
' B = final X search value
' EPS = co... |
Operation =2
Name ="tblCboContactGeneralClientOnly"
Option =0
Begin InputTables
Name ="dbo_ContactGeneral"
End
Begin OutputColumns
Expression ="dbo_ContactGeneral.ID"
Expression ="dbo_ContactGeneral.CompName"
Expression ="dbo_ContactGeneral.OperatingAs"
Expression ="dbo_ContactGeneral.IsClient"
... |
0CLS:M=15:SCREEN1:COLOR14,1,1:O=6207:P=6544:Q=.9:N=32:W=191:KEYOFF:IFJ>RTHENR=J
1DEFFNR(X)=INT(RND(1)*X):VPOKE8218,4:VPOKE8215,113:VPOKE8192,49:VPOKE8193,129
2FORI=0TO10:FORJ=0TO19:G=O+1+I*64+FNR(N):VPOKEG,M:VPOKEG+N,W:NEXT:NEXT:
3D=6880:FORI=0TO31:VPOKEO-I,215:VPOKED+I,215:NEXT:H=0:J=0
4VPOKEP,2:LOCATE5,0:?CHR$(W)... |
DECLARE FUNCTION strcons$(a$,b$,c$)
CLS
INPUT "enter any string"; a$
INPUT "enter any string"; b$
INPUT "enter any string"; c$
PRINT strcons$(a$, b$, c$)
END
FUNCTION strcons$ (a$, b$, c$)
W$ = a$ + b$ + c$
strcons$ = W$
END FUNCTION
|
10 DATA 10,20,30
20 READ A,B,C
30 PRINT A,B,C
40 IF A>=10 THEN 70
50 PRINT A
60 GOTO 90
70 PRINT B
90 STOP
99 END
|
10 LPRINT CHR$(14);"EXPANDED PICA PITCH"
20 LPRINT CHR$(27);"E":LPRINT "EXPANDED ELITE PITCH"
40 LPRINT CHR$(27);"Q":LPRINT "EXPANDED CONDENSED PITCH"
60 LPRINT CHR$(27);"P";CHR$(15)
70 LPRINT "NOW WE ARE BACK TO UNEXPANDED PICA PRINTING"
|
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
LOCAL Collect AS IPOWERCOLLECTION
LET Collect = CLASS "PowerCollection"
Collect.add ("w" , 7)
Collect.add ("x" , 9)
Collect.add ("y" , "%7")
? STR$(Collect.COUNT)
END FUNCTION
|
SCREEN 1
SQUARE$ = "R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 R1 F1 F1 F1 F1 F1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 F1 F1 F1 F1 F1 F1 F1 F1 D1 D1 L1 L1 L1 L1 L1 D1 D1 D1 D1 D1 D1 D1 D1 D1 D1 G1 G1 G1 G1 G1 G1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1"
DRAW "C2X" + VARPTR$(SQUARE$)
|
1 %TITLE "Post Purchases Journal"
%SBTTL "AP_POST_FJTAB"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2003 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 of the a... |
10 LET X_SIZE = 5
20 LET Y_SIZE = 5
100 INPUT COMM$
110 IF LEFT$(COMM$, 5) = "PLACE" GOTO 500
120 IF COMM$ = "MOVE" GOTO 600
130 IF COMM$ = "LEFT" GOTO 700
140 IF COMM$ = "RIGHT" GOTO 800
150 IF COMM$ = "REPORT" GOTO 900
160 IF COMM$ = "QUIT" GOTO 999999
80 GOTO 100
500 IF (LEN(COMM$) <> 15 AND LEN(COMM$) <> 14) OR MID... |
SCREEN 0
SCREEN 12
_TITLE "Particles"
DO
_AUTODISPLAY
CLEAR
DO
nop$ = ""
DO
SCREEN 12
LOCATE 1, 1
PRINT SPACE$(80)
LOCATE 1, 1
PRINT ">number of particles:"; nop$
SLEEP
key$ = INKEY$
IF key$ >= CH... |
10 a = 0;
20 print "A = "; A
30 gosub SplitIt
40 A=A+1
50 goto 20
60 REM ******************
70 LABEL SplitIt
80 ON A GOSUB 100,200,300,FourHundred,500
90 RETURN
100 REM ******************
110 PRINT "Line 100"
120 RETURN
200 REM ******************
210 PRINT "Line 200"
220 RETURN
300 REM ****... |
DECLARE SUB s ()
START: SCREEN 9: t = 0: W = 0: CI = 0: ZS = 100: CS = 100: wi = -1
DIM A(84) AS LONG, A2(84) AS LONG, A6(485) AS LONG, STE(60) AS INTEGER
DIM I(18, 18) AS INTEGER, J(18, 18) AS INTEGER, I1(18, 18) AS INTEGER, PN(70)
DIM J1(18, 18) AS INTEGER, I3(15) AS INTEGER, J3(15) AS INTEGER, PX(70)
DIM I4(15) AS I... |
randomize timer
principi:
punts=0
puntsd=0
puntst=0
litoca=1
preguntes=0
cls
locate 1,36:color 10:?"TRIBAM"
locate 3:color 15:INPUT"Nombre de jugadors/es (1-2)";NJ
if nj>2 or nj<1 then goto principi
?
input"Nom del jugador/a N§1";JU$:if nj=1 goto jocu
input"Nom del jugador/a N§2";JD$:goto jocd
?
jocu:
?... |
REM @english
REM GRAPHICS PRIMITIVES USING BOX
REM
REM This example will draw two boxes.
REM
REM @italian
REM PRIMITIVE DI GRAFICA CON L'USO DI BOX
REM
REM Questo esempio disegnerà due rettangoli.
BITMAP ENABLE(16)
CLS
BOX 0,0 TO SCREEN WIDTH / 10, SCREEN HEIGHT / 10
INK YELLOW
BOX 0,0 TO (SC... |
REM @english
REM MATHEMATIC ROUTINES DOING EXPRESSIONS (2)
REM
REM This example will show an example of matematical calculation, using the power (''^'')
REM and multiplication (''*'') operator.
REM
REM @italian
REM ROUTINE DI MATEMATICA CON L'USO DI ESPRESSIONI (2)
REM
REM Questo esempio mostra un esempio di ... |
DECLARE SUB DBox (Urow%, Ucol%, Lrow%, Lcol%)
' *** CHR_EX.BAS ***
'
DEFINT A-Z
' Display two double-sided boxes.
CALL DBox(5, 22, 18, 40)
CALL DBox(1, 4, 4, 50)
END
' Subroutine to display boxes.
' Parameters:
' Urow%, Ucol% : Row and column of upper-left corner.
' Lrow%, Lcol% : Row and column of lower... |
10 rem call external routine
20 call time(v)
|
1 WIDTH 80
10 GOSUB TAB,28:PRINT "AMAZING PROGRAM" :REM
20 GOSUB TAB,15:PRINT "CREATIVE COMPUTING MORRISTOUN, NEW JERSEY" :REM
30 PRINT:PRINT:PRINT:PRINT
90 PRINT "WHAT ARE YOUR WIDTH AND LENGTH" :REM
92 H=VAL(INPUT$()) :REM
94 V=VAL(INPUT$()) :REM
102 IF H!=1 AND V!=1 THEN 110 :REM
104 PRINT "MEANINOLESS DIMEN... |
'GWDEMO.BAS - Demo program for the Graphics Workshop Demo Disk
'Copyright (c) 1990, Brian C. Giedt
DEFINT A-Z
'$INCLUDE: 'GWDECL.BAS'
DECLARE SUB Pause ()
DECLARE SUB DefineMenus (Menu$(), Stat%())
DECLARE SUB CheckForFiles ()
DECLARE SUB DisplayInitialScreen (UniformSpeed%, ButtonArray%(), ButtonString$(), FirstTi... |
DIM s(6), t(12)
bde = 15 'anzahl der gezeigten Bnde
OPEN "c:\windows\desktop\tabs.txt" FOR OUTPUT AS #1
s(1) = 5: s(2) = 12: s(3) = 8: s(4) = 3: s(5) = 10: s(6) = 5
a$ = "C CisD DisE F FisG GisA B H C CisD DisE F FisG GisA B H C CisD DisE F FisG GisA B H C "
CLS
PRINT " ... |
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... |
Attribute VB_Name = "STAT_DIST_NORMAL_TRIVAR_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.
'***************************************************... |
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
ViewsAllowed =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =7215
DatasheetFontHeight =11... |
//
// Test.
//
$6000 ^ballmem
32 ^count
142 ^A $FFD2 sys
count for index select ball.init next
repeat
count for index select ball.move next
//? repeat 0 until
0 until
:select << << << << ballmem + ^ball ;
:ball.init rnd abs 80 mod ^ball[0] rnd abs 60 mod ^ball[1]
rsgn ^ball[2] rsgn ^ball[3] rnd 7 and ++ ^b... |
' Program "DEMOFFIT" February 12, 1991
'
' Copyright (c) 1991 Crescent Software
'
' This program demonstrates the procedure for calling
' subroutine FFIT which performs a curve fit of X and
' Y data input by the user to simple functions.
'
' The types of curve fits available are:
'
' Linear Y... |
RANDOMIZE TIMER
I% = INT(RND * 4) + 1
IF I% = 1 THEN YO$ = "SINFOROSA"
IF I% = 2 THEN YO$ = "NICEFORO"
IF I% = 3 THEN YO$ = "CIRIACO"
IF I% = 4 THEN YO$ = "ANACLETA"
Y% = INT(RND * 4) + 1
IF Y% = 1 THEN OTRO$ = "JUANA"
IF Y% = 2 THEN OTRO$ = "JUAN"
IF Y% = 3 THEN OTRO$ = "MARIO"
IF Y% = 4 THEN OTRO$ = "MARIA"... |
dbMemo "SQL" ="SELECT *\015\012FROM qry_Duplicates\015\012WHERE (((qry_Duplicates.START_DATE) B"
"etween #10/1/2000# And #9/30/2014#) AND ((qry_Duplicates.StationID) In ('4951260"
"','4951265')))\015\012ORDER BY qry_Duplicates.START_DATE, qry_Duplicates.Station"
"ID, qry_Duplicates.DISPLAY_NAME;\015\012"
d... |
SCREEN 12
RANDOMIZE TIMER
pY = 450
px = 200
paddle$ = "u10r35d10l35"
x = INT(RND * 300) + 10
Y = INT(RND * 300) + 10
directx = INT(RND * 1) + 1
directy = INT(RND * 1) + 1
PSET (1, 1), 12: DRAW "D450R600u450l600"
PSET (px, pY), 14
DRAW paddle$
spd = .3
life = 10
DO
CIRCLE (x, Y), 5, 0
IF directx = 0 THEN... |
Operation =1
Option =0
Begin InputTables
Name ="qryRptProfitSummaryStockSum"
Name ="dbo_ProjectComponentHeader"
End
Begin OutputColumns
Expression ="dbo_ProjectComponentHeader.ProjectHeaderID"
Alias ="SumOfStockAmt"
Expression ="Sum(qryRptProfitSummaryStockSum.StockAmt)"
End
Begin Joins
LeftTab... |
10 INPUT "Introduzca el primer operador"; N$
20 INPUT "Introduzca el segundo operador"; M
25 INPUT "Introduzca"; R
30 PRINT "Multiplicacion: "; M*N
35 IF M>R THEN 20
40 LET U = 3.43E52
20 LET M = 5
70 LET M = "Hola"
80 LET N$ = LOG(0)
90 PRINT cadenainvalida; VVV
100 LET N$ = "1234567890123456789"
130 DIM V(... |
10 :REM'ELECOST' - 07 APR 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 COLOR 15,2
80 PRINT " COST OF ELECTRICITY"TAB(57)"by George Murphy VE3ERP ";
90 COLOR 7,0
100 LOCATE 3
110 PRINT " This program calculates the operating co... |
/'
Copyright (c) 2011, SavedCoder.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
following d... |
s = 0 'score of spaceship
s1 = 0 'score of spaceship1
gh = 2000 'loop to see who has died
js = 1 'spaces from the spaceship
d = 0 'loop for moving
sh = 0 ... |
Attribute VB_Name = "Config"
DefInt A-Z
Option Explicit
'========Public Config Vars and Structs========
'Main Form
Public MainFormHeight As Long
Public MainFormWidth As Long
Public MainFormVDivider As Long
Public MainFormHDivider As Long
Public StatusBar As Boolean
Public DataListIdColWidth As Long
Public DataListNam... |
100 FOR I = 1 TO 5
200 FOR J = I TO 1 STEP -1
300 PRINT J;
400 NEXT J
500 PRINT ""
600 NEXT I
700 END
|
10 ' PROGRAM 4 for CHAPTER 2 (POINT ANIMATION IN GRAPHICS MODE
20 ' Point animation with the POKE command
100 '======================================
110 KEY OFF : SCREEN 2 : CLS
120 DEF SEG = &HB800
130 FOR K = 0 TO 79
140 FOR I = 0 TO 8
150 READ X : POKE K,X
160 NEXT I
170 RESTORE
180 NEXT K
190 DATA ... |
10 addr=1024:cl=55296:print"0{clr}"
20 q=100*rnd(9)+20:q1=6*rnd(9)+2
30 for i=0 to q:x=1000*rnd(9):n=46:gosub 150:next
40 for i=0 to q1:x=1000*rnd(9):n=81:gosub 150:next
50 for i=0 to 999:next:print"{clr}":goto 20
150 poke addr+x,n:poke cl+x,n:return
|
SCREEN 1
PRINT
PRINT
PRINT TAB(15); "WAR ZONE!"
PRINT
PRINT
COLOR 0, 0
INPUT A
SCREEN 1
VIEW PRINT 10 TO 14
COLOR 0, 1
PRINT TAB(7); "THIS GAME WAS COPYRIGHT OF"
BEEP
BEEP
PRINT TAB(7); "B.E. GAMES. LOOK FOR NEW"
BEEP
BEEP
PRINT TAB(7); "VESIONS OF THIS PROGRAM"
BEEP
BEEP
PRINT TAB(7); "MAY BE CRE... |
10 REM Filename:FROTH
20
30 REM Hybrid FORTH
40
50 REM (c) 1983 Jeremy Ruston
60
70 MAXCO%=3000:REM Code size
80 MAXST%=50*2:REM Stack size
90 MAXDC%=1000:REM Dictionary size
100
110 PROCinit
120 ON ERROR REPORT:PRINT " at line ";ERL:BUF$="":IF ERR=17 THEN END ELSE GOTO 140
130 PR... |
Attribute VB_Name = "cMC"
' Isoplot module cMC
Option Private Module
Option Explicit: Option Base 1
Const MaxCt = 100
Dim tLambda235#, tLambda238#, Ldiff#, Lrat#
Dim X#(), sigmaX#(), y#(), SigmaY#(), Rho#(), TrueYorkX#(), TrueYorkY#()
Sub ConcMcHistClick()
Attribute ConcMcHistClick.VB_ProcData.VB_Invoke_Func = " \n1... |
CLS
RANDOMIZE TIMER
DIM a$(6)
DIM bb(100)
cc = 0
a$(1) = " Û "
a$(2) = " Û Û "
a$(3) = " Û Û Û "
a$(4) = " Û Û Û Û ... |
10 print "{clear}xxxxxxxxxx":rem clear the screen, then print 10 x's
20 poke 53281,7:rem set background colour zero to yellow
30 poke 53282,2:rem set background colour one to red
40 poke 53283,14:rem set background colour two to light blue
50 poke 53270,peek (53270) or 16:rem turn multi-colour mode on
60 a=55296:rem st... |
DIM result$(32)
CLS
PRINT "Введите первую строку строчных латинских символов и пробелов"
INPUT "", s$
s$ = s$ + " "
s$ = LTRIM$(s$)
PRINT "Введите вторую строку строчных латинских символов и пробелов"
INPUT "", d$
d$ = d$ + " "
d$ = LTRIM$(d$)
cd$ = d$
FOR n = 1 TO LEN(s$)
IF (MID$(s$, n, 1) < "a" OR MID$(s... |
DEFINT A-Z
'by Phil Cramer
'Font routines by Brian Giedt
'Copyright (c) 1992 Crescent Software
'---- BASIC subs
DECLARE SUB CrossHair (x%, y%)
DECLARE SUB CursorXY (x%, y%, Button%, Ky%)
DECLARE SUB DrawText (Xx%, Yy%, Text$, Angle%, Colr%, TextSize#)
DECLARE SUB DrawChar (x%, y%, Letter%, Colr%, Size#, Expand%)
DECL... |
' Word Scramble, for BASIC, web: http://rudih.info
CLS
DIM y(30)
PRINT "2 player word guessing game"
PRINT "Enter word to scramble:"
INPUT x$
x$ = UCASE$(x$)
xl = LEN(x$)
IF xl < 1 THEN END
RANDOMIZE TIMER
FOR a = 1 TO xl
again: x = INT(RND * xl) + 1
FOR b = 1 TO 30
IF x = y(b) THEN GOTO ag... |
'**** DemoMous.Bas - Demo of the Graphics Workshop Mouse routines
'Copyright 1990, Brian C. Giedt
DEFINT A-Z
'$INCLUDE: 'GWDecl.BAS'
DECLARE SUB ChangeMouseCursor (Cursor$, CursorType%)
SCREEN 9
CLS
CALL InitMouse(HaveMouse%)
IF HaveMouse THEN
PRINT "We have a mouse. Move the mouse around the screen."
PRI... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
... |
SCREEN 12,0:COLOR 15,1
DIM NUM(1:40),SB$(1:40)
OPEN "C:\FB\SCOREBD.FIL" FOR INPUT AS #1
FOR N=1 TO 40
INPUT #1,NUM(N),SB$(N)
NEXT
FOR K=1 TO 40
CLS
SELECT CASE K
CASE 17:COLOR 15
CASE 1 TO 16:COLOR 14
CASE 18 TO 33:COLOR 11
CASE 34 TO 40:COLOR 10
END SELECT
LINE(217,1)-(421,127),9,BF
LOCATE 4,28:?"... |
'_|_|_| EXE_APND.BAS
'_|_|_| Code to append data files to an existing .EXE
'_|_|_| No warrantee or guarantee given or implied.
'_|_|_| PUBLIC DOMAIN by Kurt Kuzba. (7/11/1997)
ON ERROR GOTO BooBoo
INPUT "Enter Program File name => ", ExeName$
IF ExeName$ = "" THEN SYSTEM
FError$ = "OK": exe% = FREEFIL... |
'=============================================
'= pong by diamondcreeper098 =
'= email: dmnd098@gmail.com =
'= github:github.com/diamondcreeper098 =
'=============================================
'ball
ballW = 20
ballH = 20
ballX = 25
ballY = 1
'paddle player
padW = 20
... |
atom=H
contraction shell=S num_primitives=4 num_coefficients=1
190.691690000000 0.000708151670
28.605532000000 0.005467882700
6.509594300000 0.027966605000
1.841245500000 0.107645380000
contraction shell=S num_primitives=1 num_coefficients=1
0.598537250000 1.000000000000
contraction shell=S num_primitives=1 num_coeffic... |
10 REM This is a test
20 LET A=10
30 GOSUB 100
40 PRINT A,B
90 STOP
100 LET B=20
110 RETURN
999 END
|
REM Alanna Nguyen's CIBC ATM: gr.11 com-sci [June 17, 2013]
_TITLE "CIBC ATM"
DIM username AS STRING
DIM password AS STRING
DIM pin AS LONG
DIM action AS INTEGER
DIM actionString AS STRING
DIM balance AS INTEGER
DIM deposit AS INTEGER
DIM withdraw AS INTEGER
CLS
1
SCREEN 9:
COLOR , 4: CLS
username =... |
10 s=54279:for l=s to s+18:poke l,0:next
20 ff=25:ba=15
30 aa=19
40 gosub 90
50 ff=20:gosub 160
62 for ff=20 to 50 step 3:gosub 160:next ff
70 poke s+1,0:poke s,0
80 end
90 rem
100 poke s+5,195
105 poke s+6,240
110 poke s+17,15
120 poke s+4,aa
130 return
160 ll=ba+ff:h=ba:gosub 190
170 return
190 for i=ll to ba step -1... |
10 :REM'HALFLOOP - Half-Loop Antenna - 17 JUN 2001 rev. 24 JAN 06
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 COLOR 7,0,1
50 UL$=STRING$(80,205)
60 :REM'
70 :REM'.....title page
80 CLS
90 COLOR 15,2
100 PRINT " HALF-LOOP ANTENNA"TAB(57)"by George Murphy VE3ERP ";
110 COLOR 1,0:PRINT STRING$(80,223);
120 COLOR 7,0
130... |
10 REM TEST PROGRAM FOR PACK$() FUNCTION
20 A$ = "HELLO, WORLD!"
30 ARR A = UNPACK(A$)
40 PRINT "A IS:"
50 ARR PRINT A
199 END
|
5 REM MINING COLONY, ROBERT CAMPBELL, C&VG ISSUE 12
6 REM MODIFIED BY DAVID BANKS AS ORIGINAL WAS POOR
10 P.$12
11 IN."INSTRUCTIONS (1=YES;2=NO)"V;IF V=1 GOS.i
15 B=32928
16 IN."DIFFICULTY (1-6)"F
17 CLEAR 0
18 IF F>6 G.16
20 F. I=1 TO F;A=A.R.%32+33249
30 ?A=42
35 ?B=64
36 ?B=102
37 ?B=64
38 IF ?(B+32)... |
21000 ! ISAM (KEVIN'S BASE; BILL LORTZ' SORT--SEP. 16, 1980) &
! &
! MODIFIED JAN. 6, 1982 -- DLH &
! 1. Return an error #8 on FNO%() if file is being sorted &
! 2. Return an error #11 if attempt is made to delete header &
! 3. FNT now works after any ISAM call, not just FNG%() &
! 4. FNG% returns 29 if key a... |
REM BUSY CURSOR
USECLASS BSYCSR
USEGRAPHIC 10
USEVAR MAXNUM,MAXW,MAXH,BALLR
USEVAR BALL
MAXW=SYSTEM(22):MAXH=SYSTEM(23)
MAXNUM=5
BALLR=16
DIM BALL(MAXNUM),T(32*32/4)
FOR C=0 TO 15
GPALETTE 0xFF-C,255-C*C,255-C*C,255-C*C
NEXT
FOPEN "B032_16B.BMP","r"
FSEEK 54
FOR C=0 TO 15
B=FGETC():G=FGETC()
R=F... |
10 CLS:INPUT"Число городов";N
20 DIM CC[N,N],ST[N,N],G[N]
30 FOR I=1 TO N:FOR J=1 TO N
40 PRINT"Из"I"-го города в"J"-ый:";:INPUT CC[I,J]
50 NEXT J,I
60 PRINT"Это - данная таблица:"
70 FOR I=1 TO N:FOR J=1 TO N:PRINTCC[I,J];TAB(4*J);:NEXTJ:PRINT:NEXTI
80 PRINT"Таблица минимальных цен:"
90 FOR I=1 TO N
100 FOR J... |
1 %TITLE "Payroll OST/SDI Report"
%SBTTL "PR_RPRT_OST"
%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 used and
! copied only in accordance with terms of such license and with
! the inclusion... |
Attribute VB_Name = "mRegistry"
'Public Declare Function GetShortPathName Lib _
"kernel32" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, _
ByVal cchBuffer As Long) As Long
Private Declare Function SystemParametersInfo Lib "user32" Alias _
"SystemParametersInfoA" (ByVal uAction As Long,... |
100 LET R = RND(10)
110 INPUT "GUESS A NUMBER BETWEEN 1 AND 10"; G
120 IF G = R THEN GOTO 180
130 IF G < R THEN GOTO 160
140 INPUT "TOO HIGH. GUESS AGAIN"; G
150 GOTO 120
160 INPUT "TOO LOW. GUESS AGAIN"; G
170 GOTO 120
180 PRINT "YOU WIN!"
190 END
|
10 a=3
20 b=2
30 IF b>a THEN PRINT "foo":IF b>a THEN PRINT "bar"
|
1 PRINT TAB(28);"GAME OF EVEN WINS"
2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
3 PRINT:PRINT
4 INPUT "DO YOU WANT INSTRUCTIONS (YES OR NO)";A$:PRINT
5 IF A$="NO" THEN 20
6 PRINT "THE GAME IS PLAYED AS FOLLOWS:":PRINT
7 PRINT "AT THE BEGINNING OF THE GAME, A RANDOM NUMBER OF CHIPS ARE"
8 PRINT "PLACED ... |
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "update_emp_table"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Private Enum state
open_phase = 1
close_phase = 2
update_phase = 3
End Enum
Private Con... |
set doublewide on
displaymode 160A
incgraphic gfx/tileset_level.png 160A
incgraphic gfx/bombman_f_1.png
characterset tileset_level
dim frame = a
dim tempplayerx = b
dim tempplayery = c
dim player1posX = d
dim player1posY = e
dim player1CharN = f
dim player1CharS = g
dim player1CharE = h
... |
1 %TITLE "Accounts Payable Vendor Label Writer"
%SBTTL "AP_RPRT_APV003"
%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 an... |
REM PASO: NUMERO DE LADOS PARA LAS BASES
PASO = 15
REM CALCULAMOS LAS CONSTANTES
RESTORE DATOS
PI = 3.141591 / 180
READ NDISCOS
TOTV = NDISCOS * PASO
DIM V(TOTV, 2)
PASO2 = 360 / PASO
READ CIERRA1
READ CIERRA2
REM CALCULAMOS LOS VERTICES DE LA FIGURA
FOR F = 0 TO NDISCOS - 1
READ RADIO1
... |
'
' COMM3.BAS
' Programa de comunicacions amb cable modem nul
' Ver. 0.397
'
' 15/11/1997
' Tomeu Capó i Capó 1997 (C)
' Smart Software 1993/97 (C)
'
'$INCLUDE: 'QBX.BI'
'$INCLUDE: 'C:\fact3\fonts\STRUCTS.BI'
'$INCLUDE: 'C:\fact3\fonts\SDK_001.BI'
'$INCLUDE: 'C:\fact3\fonts\DRAC3.BI'
DECLARE FUNCTION BinariDecimal! (... |
Operation =1
Option =0
Where ="(((tbl_Coordinates.Field_UTME) Is Not Null))"
Having ="(((Count(tbl_Coordinates.Coord_ID))>1))"
Begin InputTables
Name ="tbl_Coordinates"
Name ="tbl_Locations"
Name ="tbl_Events"
End
Begin OutputColumns
Expression ="tbl_Locations.Location_type"
Alias ="Sample_year"
... |
1 %TITLE "Sub Process to Compile CDD File"
%SBTTL "TK_SUBR_DDLCOMPILE"
%IDENT "V3.6a Calico"
SUB TK_SUBR_DDLCOMPILE(SMG_DDL_CDD DDL, &
STRING SYSTEM_NAME, STRING FILE_NAME)
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be... |
10 PRINT "'"; MID$("ABC", 2); "'"
10 PRINT "'"; MID$("ABC", 2, 1); "'"
|
10 SCREEN 1
20 KEY OFF
25 F=0:H=0:S=0
30 CLS
40 LOCATE 11,8:PRINT"SOKSZÖGEK KERÜLETE, TERÜLETE"
50 X$=INPUT $(1)
60 CLS
65 GOSUB 9000
70 PRINT:PRINT"Egész, vagy tÖrtszåmokkal akarsz szå-molni? (e/t)";
80 A$=INPUT $(1)
81 A=VAL(RIGHT$(TIME$,2))
82 RANDOMIZE A
85 IF A$="... |
10 '********************************
20 '* *
30 '* ERAD CODE *
40 '* *
50 '* J.W.L *
60 '* *
70 '********************************
80 KEY OFF : CLS
90 DEF FNC=ASC(CODE$)
100 CARRAGE=1... |
1 %TITLE "Maintain Purchase Order Register Subline"
%SBTTL "PO_MAIN_REGSLINE"
%IDENT "V3.6a Calico"
FUNCTION LONG PO_MAIN_REGSLINE(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1992 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.