text stringlengths 7 5.36M |
|---|
Attribute VB_Name = "mViewReport"
Option Explicit
Dim intCM_Row As Integer
Public Function CreateViewWorkbook(arrSheet As Variant) As Workbook
Dim xlApp As Excel.Application
Dim wb As Workbook
Dim ws As Worksheet
Dim strFile As String
Dim i As Integer
1 If gEnableErrorHandling Then ... |
/*
SC to allow for an owner (defined at time of SC initialization or when TransferOwnership() & ClaimOwnership() is ran) to deposit/withdraw funds from the SC
Any user is able to view the current balance available in the SC with a provided SCID via rpc call
*/
Function Initialize() Uint64
10 STORE("owner", SI... |
LOCATE 1,1:DrawCursor 1
ON ERROR GOTO trouble
CONST x.=0 ' Costanti per le procedure
CONST y.=1 ' di scrolling (SMOOTH e SPLIT)
cd$=COMMAND$ ' cd$ = Path per i file accordi nella CLI-Line
fh=0 ' fh = Flag di caricamento d... |
10 REM 'PRINT' WITH COMMA TEST PROGRAM
20 PRINT "THE COMMA WORKED IN THE PRINT STATEMENT"
30 PRINT "IF THESE NUMBERS ARE PRINTED IN ZONES"
40 PRINT 1,2,3,4
99 END
|
Attribute VB_Name = "MOD_DeepFreeze"
Option Explicit
Public Function IsDeepFrozen() As Boolean
Dim strTmp As String
10 On Error GoTo ABS_ErrorHandler
30 strTmp = GetStringValue(HKEY_LOCAL_MACHINE, "SOFTWARE\Faronics\Deep Freeze 6", "DF Status", "Thawed")
40 If StrComp(strT... |
; Frequency Selection
;
; This program gets driven by a rotary encoder with a pushbutton.
; The selection of the encoder ranges between 20MHz
; and 1Hz. The pushbutton turns the Fast Rise power on and off.
;
; When the selections reaches either end, it
; will stay at that value and not move on.
; The frequenc... |
10 REM TEST PRINT USING
20 LET A = 3.14159
21 LET B = 2.7184
30 PRINT "PRINT USING WITH COMMA"
31 PRINT USING "###.##", A
40 PRINT "PRINT USING WITH SEMICOLON"
41 PRINT USING "###.##"; A
99 END
|
10 REM SEQUENTIAL SEARCH DEMO
20 REM
30 REM A IS ARRAY TO HOLD THE DATA ITEMS
40 REM I AND J ARE LOOP INDEX VARIABLES
50 REM X HOLDS THE VALUE WE ARE SEARCHING FOR
60 REM F IS A FLAG, 0 MEANS NOT FOUND, 1 MEANS FOUND
70 REM K IS INDEX OF FOUND ELEMENT IN A
80 REM T IS TOTAL COUNT OF N... |
1 REM * the valley ********************
2 REM * (c) ct magazine - 1982 *
3 REM * *
4 REM * porting by: *
5 REM * Trantor/Hokuto Force 2021 *
6 REM *********************************
18 REM ********************************
19 REM ** define major variables
40 POKE... |
DECLARE SUB PrintFile (file AS ANY)
fDEFINT A - Z
TYPE FileRecord
filename AS STRING * 12
basename AS STRING * 8
extension AS STRING * 3
size AS LONG
date AS STRING * 10
time AS STRING * 5
END TYPE
DIM file AS FileRecord
tmpFile$ = "~TMP.~~~"
spec$ = "*.BAS"
IF bare THEN
SHELL ENVIRON$("... |
SCREEN 7, 0, 1, 0
bx = 160
by = 100
p1x = 20
p1y = 80
p2y = 80
p2x = 300
xadj = 1
yadj = 1
b1x = 30
b1y = 20
b2x = 30
b2y = 180
DO
PCOPY 1, 0
LINE (0, 0)-(320, 200), 0, BF
LINE (160, 20)-(160, 180), 15
LOCATE 1, 3: PRINT score1
LOCATE 1, 36.5: PRINT score2
LOCATE 1, 17: PRINT "P O N G"
bx = bx + xadj
by = by + yadj
... |
10 SCREEN 12
15 a = 5
20 a$ = INKEY$
30 IF a$ = CHR$(0) + "H" OR a$ = "8" THEN y = y - a'oben
40 IF a$ = CHR$(0) + "P" OR a$ = "2" THEN y = y + a'unten
50 IF a$ = CHR$(0) + "K" OR a$ = "4" THEN x = x - a'inks
60 IF a$ = CHR$(0) + "M" OR a$ = "6" THEN x = x + a'rechts
70 IF a$ = "7" THEN y = y - a: x = x - a'link... |
10 FOR G = 1 TO 10
15 DWRITE 2, HIGH
20 DELAY 250
25 DWRITE 2, LOW
30 DELAY 250
40 NEXT G
45 FOR N = 0 TO 10
50 FOR R = 0 TO 255
55 AWRITE 2, R
60 DELAY 5
65 NEXT R
70 FOR R = 255 TO 0 -1
75 AWRITE 3, R
80 DELAY 5
85 NEXT R
90 NEXT N |
100 CLS
110 ON KEY GOSUB *SINSUB,*COSSUB,*ENDSUB
120 FOR I=1 TO 3
130 KEY(I) ON
140 NEXT I
150 DEG=0:PI=3.1416:FLAG=1
160 PRINT "F1 ÏÀÊ F2 ¦ µ¼Ã ¸ÀÞ»² (F3 ÃÞ ¼³Ø®³)."
170 *START
180 TH=DEG/180*PI
190 LOCATE 0,10
200 ON FLAG GOTO *SINC,*COSC
210 *SINC:PRINT "TH=";DEG;TAB(12);"SIN(TH)=";SIN(TH);:GOTO *EXIT
... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1765147896
Begin Form
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =18000
DatasheetF... |
CLS
PRINT "Welcome to Stress Reliever 1.0"
PRINT
INPUT "What is the person's name that you are mad at? ", person$
LET p$ = UCASE$(person$)
IF p$ = "NATHAN" THEN CLS : END
IF p$ = "NATHAN FRIEND" THEN CLS : END
IF p$ = "NATHAN F" THEN CLS : END
IF p$ = "FRIEND" THEN CLS : END
IF p$ = "N. FRIEND" THEN CLS : END
IF p$ = ... |
' DURAK, a card game
' by GuPH http://guph.8m.com
' WTF:
' It's a well known (in Russia anyway) Russian game of cards.. It is very
' simple and very playable (which is why I made a computer able to play it in
' this prog). Durak in Russian mean... |
10 PRINT "PROGRAM FILE 78: ERROR - REFERENCE TO ONE-DIMENSIONAL AND "
15 PRINT " TWO-DIMENSIONAL VARIABLE OF SAME NAME."
20 PRINT " ANSI STANDARD 6.4"
30 PRINT
40 PRINT "SECTION 78.1: ERROR - REFERENCE TO ONE-DIMENSIONAL AND "
50 PRINT " TWO-DIMENSIONAL VARIABLE OF SAME NAME."
60 PRINT
70 PRINT
80 PRIN... |
10 'PROGRAM 1 for CHAPTER 1 (SPACE)
20 'Plots randomly chosen points
100 '==================================
110 RANDOMIZE TIMER
120 KEY OFF : SCREEN 2 : CLS
130 FOR I = 1 TO 100
140 X = 640*RND : Y = 200*RND
150 PSET (X,Y)
160 NEXT I
|
1 REM STUNT MAN
10 V=53248:POKE2040,192:POKE2041,193:POKEV+39,7:POKEV+40,10
20 POKEV+16,0:POKEV+21,0:FORI=12288TO12350:READQ:POKEI,Q:NEXT
30 FORI=12352TO12373STEP3:READQ:POKEI,Q:POKEI+1,0:POKEI+2,0:NEXT
35 FORI=12376TO12414:POKEI,0:NEXT
40 POKEV+2,185:POKEV+3,170
50 FORI=49152TO49230:READQ:POKEI,Q:NEXT
60 NM=3:SC=100
1... |
10 PRINT "HALLO"
20 END
|
10 REM This is a test
20 FOR I = 1 TO 10
30 PRINT I
40 IF I < 5 THEN 60
50 BREAK
60 NEXT I
70 IF BROKEN() THEN 78
72 PRINT "NOT BROKEN"
74 GOTO 90
78 PRINT "BROKEN"
90 STOP
99 END
|
REM ---------------------------------------------------
REM
REM STRING.BAS
REM
REM USE OF INSTR COMMAND
REM
REM AUTHOR: ANDRE MURTA
REM DATE: 20/12/1992
REM
REM DEVELOPED AT CENTRO DE ENSINO SUPERIOR DO PARA
REM
REM ---------------------------------------------------
stri = "Andre Murta MBasic"
sstr = "MBasic"
PRINT i... |
10 rem chipmunk basic
11 print "hello world"
' First! Read the file, line by line, and process it.
20 open "prob.in" for input as #1
' line$ - current line, ids$ - array of all kinds of bags, lookups$ - array of bag id -> names of contained bags, totalrows - number of lines/entries in ids$
25 dim line$, ids$(600), loo... |
10 REM ORIGINAL HAMURABI IN IMSAI 4K BASIC
20 REM FROM REVISION REWRITTEN 12/11/77
310 PRINT "HAMURABI - ";
320 PRINT "WHERE YOU GOVERN THE ";
321 PRINT "ANCIENT KINGDOM OF SUMERIA."
330 PRINT "THE OBJECT IS TO FIGURE ";
331 PRINT "OUT HOW THE GAME WORKS!!"
340 PRINT "(IF YOU WANT TO QUIT, ";
341 PRINT "SELL AL... |
10 POKE53280,0:POKE53281,0
20 DIM W(15)
30 FOR T=0 TO 14:READ W(T):NEXT T
40 FOR P=1024 TO 2023
50 S=INT(RND(0)*15):POKEP+54272,S
60 IF P<1064 THEN POKE P,W(S):NEXT
70 B=PEEK(P-40)
80 L=PEEK(P-1)
90 IFB=109ORB=74ORB=64ORB=125ORB=75ORB=113 THEN GOSUB 500:POKE P,W(S):NEXT
100 GOSUB 600:POKE P,W(S):NEXT
498 GOTO... |
1 %TITLE "Product Cost Maintenance"
%SBTTL "PC_MAIN_COST"
%IDENT "V3.6a Calico"
FUNCTION LONG PC_MAIN_COST(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 furni... |
' Game like data storm on Amiga
CLEAR , , 80000
DIM img%(1 TO 1000, 1 TO 32) ' Images stored in .DAT file
DIM sht(10, 10, 80)
DIM enmy(1, 2, 20)
DIM Box%(1 TO 200)
DIM shp1%(200)
DIM shp2%(200)
SCREEN 9
Initscreen:
' Open image file and restore
DEF SEG = VARSEG(img%(1, 1))
... |
DIM AS STRING FN
INPUT FN
OPEN FN FOR INPUT AS #1
INPUT #1,N
DIM AS INTEGER A(N),B(N,N),C(N),D(N)
FOR I=1 TO N
INPUT #1,A(I)
NEXT I
FOR I=1 TO N
C(I)=0
FOR J=I TO N
INPUT #1,B(I,J)
NEXT J
NEXT I
A(0)=0
FOR I=N TO 1 STEP-1
MAX=0
Y=-1
FOR J=I TO N
IF B(I,J)=1 AND (A(J)>A(MA... |
05 CLS
10 PRINT AT 0, 9; "ZX BASIC CHESS"
20 PRINT AT 2, 15; "by"
30 PRINT AT 4, 8; "Code Monkey King"
40 DATA 13, 13, 13, 13, 13, 13, 13, 13, 13, 13
41 DATA 13, 13, 13, 13, 13, 13, 13, 13, 13, 13
42 DATA 13, 10, 8, 9, 11, 12, 9, 8, 10, 13
43 DATA 13, 7, 7, 7, 7, 7, 7, 7, 7, 13
44 DATA 13, 0, 0, 0, 0, ... |
DECLARE SUB Instructions ()
DECLARE SUB Title ()
REM Linewars!
REM Copyright Douglas Wright 1997
CALL Title
1 CLEAR
CLS
RANDOMIZE TIMER
SCREEN 12
COLOR 15
PRINT SPC(26); : INPUT "Do you want Instructions"; B$: B$ = UCASE$(B$): IF B$ = "Y" THEN CALL Instructions
PRINT
PRINT
COLOR 15
PRINT SPC(25); : INPUT "No. of player... |
' Copyright (c) 1988, 1989, 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
SUB DERIVATIVE (T, Y(), YDOT()) STATIC
' System of differential equations subroutine
' Y1' = Y2 - Y3 + T
' Y2' = 3T^2
' Y3' = Y2 + e^(-T)
' Input
' T = integration time
' Y() = vector of integration... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularFamily =0
BorderStyle =3
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24... |
' 1 min timer Balloon | IchigoJam BASIC 1.3b09+
' Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
10 '1min Balloon
20 VIDEO 1:CLS:A=31:B=24
30 FOR C=1 TO 41:CLT
40 FOR D=0 TO 360 STEP 5
50 X=SIN(D)*C/256+31
60 Y=COS(D)*C/256+24
70 DRAW A,B,X,Y
80 DRAW A... |
'
' *** SUB1_EX.BAS - SUB statement programming example
'
INPUT "File to be searched";F$
INPUT "Pattern to search for";P$
OPEN F$ FOR INPUT AS #1
DO WHILE NOT EOF(1)
LINE INPUT #1, Test$
CALL Linesearch(Test$,P$)
LOOP
SUB Linesearch(Test$,P$) STATIC
Num = Num + 1
X = INSTR(Test$,P$)
IF X >... |
Attribute VB_Name = "RateResetOrig"
' '
' -------------------------------------------------- RATE RESET -------------------------------------------------- '
' This module does the heavy lifting in the rate... |
Attribute VB_Name = "SetEnv"
Option Explicit
Sub sReadConfig()
Dim intFNo0 As Integer
Dim strValue() As String
Dim strTmpArray1() As String
Dim strTmpArray2() As String
Dim bytBuf() As Byte
Dim strConfig As String
Dim i As Integer
Dim j As Integer
'DEFファイルを読み込む
... |
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 FOR I=1 TO 7
20 FOR J=1 TO 4
30 READ B$(I,J)
40 NEXT J
50 NEXT I
60 DATA TASHKENT, TRENT, KENT, GHENT
70 DATA WRAPPED UP, COVERED, PAINTED, FA... |
'JT's Math Program
CLS
PRINT "(c) JT & Co."
PRINT "Please have CAPS LOCK down."
PRINT "Press Space Bar to go on."
SLEEP
SCREEN 8
start:
COLOR 10
PRINT
PRINT
PRINT "WeLcOmE tO jT's MaTh PrOgRaM"
PRINT
COLOR 12
INPUT "Do you want the (C)alculator or the (Q)uizer >", c$
SELECT CASE c$
CASE "C"
GOTO calc
... |
#RESOURCE VERSIONINFO
#RESOURCE FILEFLAGS %VS_FF_SPECIALBUILD
#RESOURCE FILEVERSION 2012, 11, 2, 1
'#RESOURCE PRODUCTVERSION 2012, 10, 29, 1
#RESOURCE STRINGINFO "0804", "04B0"
#RESOURCE VERSION$ "Comments", "ADSI Wrapper DLL"
#RESOURCE VERSION$ "CompanyName", "HeHui Inc."
#RESOURCE VERSION$ "... |
Attribute VB_Name = "modIndices"
'**************************************************************
'This program is free software; you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation; either version 2 of the License, or
'any later versi... |
'CSLOGO.BAS - Contains a routine to draw the Crescent Software Logo
'Copyright (c) 1990, Cresent Software
'Written by Phil Cramer
'Syntax:
'
' CALL CSLogo (X, Y, Scale!, BClr)
' ^ ^ ^
' ³ ³ ³
' ³ ³ ÀÄÄÄÄÄÄÄÄÄ Scaling factor (must be at least .75)
' ³ ÀÄÄ... |
DEFINT A-Z
DECLARE FUNCTION FileOPEN% (FileName$, Mode$)
DIM UseString AS STRING * 256
Temp%=FileOPEN("USES1.TAB", "B"
FOR i = 0 TO 255
if teble
NEXT i
FUNCTION FileOPEN% (FileName$, Mode$)
FileOPEN% = FREEFILE
OPEN Mode$, FREEFILE, FileName$
END FUNCTION
SUB LoadUseString (FileName$)
Temp% = File... |
1 %TITLE "Accounts Payable Journal Line Maintenance"
%SBTTL "PC_MAIN_DEAL_PRODUCT"
%IDENT "V3.6a Calico"
FUNCTION LONG PC_MAIN_DEAL_PRODUCT(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 2001 BY
!
! Software Solutions, Inc.
! Idaho Falls, Idaho.
!
! Thi... |
INICIO:
SCREEN 2: KEY OFF: CLS
LOCATE 23, 7, 0: PRINT "toque las primeras letras del teclado PARA SALIR ESC"
110 CMD$ = INKEY$
IF CMD$ = "" THEN 110
IF CMD$ = CHR$(81) OR CMD$ = CHR$(113) THEN PLAY "MLL20C": GOTO INICIO
IF CMD$ = CHR$(87) OR CMD$ = CHR$(119) THEN PLAY "MLL20D": GOTO INICIO
... |
0 REM ************************
1 REM ** - CCESOFT - **
2 REM ** FELIPE ABRAMVET **
3 REM ** VERSAO 1.0 04/85 **
4 REM ************************
5 REM ** DEMO PRINTER **
6 REM ************************
7 HOME : PRINT TAB( 11)"- CCESOFT -": PRINT
8 PRINT "NAO RODE ESTE PROGRAMA SEM ANTES VERIFI... |
const Xmax = 640
const Ymax = 480
const Xmid = Xmax/2
const Ymid = Ymax/2
const Lens = 256
const PI = 3.141593
const rings = 14
const bands = 15
const ringradius = 100
const bandradius = 40
'x 0
'y 1
'z 2
'screenx 3
'screeny 4
randomize ticks
MaxPoint = Rings * Bands
dim model(4, MaxPoi... |
RANDOMIZE TIMER
PRINT "Generating sequence... ";
n = 100000
asc1 = 32
asc2 = 126
ascd = asc2 - asc1
x1$ = "@ll w0rk_&_n0~pl@y m@ke$.j@ck^@^Dull b0y"
OPEN "seq_abc_0.txt" FOR OUTPUT AS #1
FOR i = 1 TO n
IF (RND > 10 / n) THEN
p = INT(RND * (ascd + 1)) + asc1
PRINT #1, CHR$(p)
ELSE
FOR j ... |
Attribute VB_Name = "WEB_SERVICE_OANDA_LIBR"
'--------------------------------------------------------------------------------------------------------------
'--------------------------------------------------------------------------------------------------------------
Option Explicit 'Requires that all variabl... |
'_|_|_| QUIKVIEW.BAS
'_|_|_| A program to read and display ANSI files. Requires ANSI.SYS
'_|_|_| No warrantees or guarantees are given or implied.
'_|_|_| Released to PUBLIC DOMAIN by Kurt Kuzba. (8/2/96)
COLOR 14, 0: CLS
DO
DIM buf(160) AS STRING * 1: LOCATE 1, 1: DEF SEG = &HB800
FOR T% = 0 ... |
5 Timer=0
10 For i=0 To 1000000
20 a=a+1
30 Next i
40 b=Timer
50 Laufzeit=b/1000
60 Print"Pro sekunde :";Int(1000000/laufzeit);" Wiederholungen"
70 Print"Gesamtlaufzeit :";laufzeit;" Sekunden"
80 End
|
10 PCLEAR 1
15 CLS:JMS F:JMS CLS
20 LOADM"VIBGET"
30 FOR X=0 TO 63:PRINT "DO PHONEM";X;:INPUT A:EXEC:SAVEM STR$(X)+":2",&H2000,&H2000+8*256,0:NEXT
|
10 c%=32000:b%=0:ti$="000000":for i=0 to 40000
20 if i<30000 then b%=b%+1
25 if i=20000 then print "halftime"
30 c%=c%-1:u=peek(b%+1):poke 832,35
40 next
50 printb%,c%,u,ti |
'### Thank you for taking the dive into this arcane file!
'### For guidance, just follow the signposts.
'### You can find a signpost by ctrl-F for the string "'###"
'### Hopefully, you can get the gist of this file by just looking for these special comments!
'### -- Patrick Melan... |
10 CLS
20 RANDOMIZE TIMER
30 D% = INT(RND * 9000) + 999
40 CLS
CLEARKEYLOCKS:
DEF SEG = 0
KeyFlags = PEEK(1047)
POKE 1047, &H0
DEF SEG
RESTORE
50 COLOR 14
60 PRINT
70 PRINT
80 PRINT
90 PRINT
100 PRINT
110 PRINT " ÛßßßßßßßßßßßßßßßßßßßßßßÛ"
120 PRINT " Û ... |
Attribute VB_Name = "rEsTaRt"
'this is a mod that restarts the users computer
'written by Marty
Option Explicit
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, _
ByVal dwReserved As Long) As Long
Private Const ENDSESSION_LOGOFF As Long = &H80000000
Public Enum EShut... |
10 PRINT "LINEAR INTERPOLATION"
20 PRINT
29 REM - ENTER X- AND Y-COORDINATES OF TWO POINTS ON THE LINE
30 PRINT "X,Y OF FIRST POINT";
40 INPUT X1,Y1
50 PRINT "X,Y OF SECOND POINT";
60 INPUT X2,Y2
69 REM - ENTER X-COORDINATE OF POINT TO BE INTERPOLATED
70 PRINT "INTERPOLATE: X=";
80 INPUT X
89 REM - COMPUTE CO... |
SUB Main
INPUT k
PRINT k
INPUT "Enter a number", n
PRINT n
INPUT "Ներմուծեք մի տեքստ։", e$
PRINT e$
END SUB
|
'$INCLUDE:'Luke Stuff-ID_Includes.bas'
'$INCLUDE:'Steve Stuff-ID_Includes.bas'
|
>LIST
20 CLEAR R: CLEAR C: CLEAR D: CLEAR O: CLEAR B
40 ONTIME 1,10000: TIC 1
100 REM FIRST TIME SETUP
110 INIT=60
120 ACCUM=INIT
200 REM MAIN LOOP
999 REM END MAIN LOOP
1000 GOTO 200
2000 REM MOTOR OFF
2010 OTU 000: OTU 001: OTU 002: OTU 003: LIO
2020 PRINT "Motor Off"
2030 RETURN
30... |
Version =20
VersionRequired =20
Begin Form
NavigationButtons = NotDefault
DividingLines = NotDefault
ScrollBars =2
GridX =50
GridY =50
Width =6988
ItemSuffix =5
Left =1785
Top =1320
Right =11520
Bottom =7590
HelpContextId =40
RecSrcDt = Begin
... |
10 CLS
20 A=5
30 B=4
40 C=3
50 IF A=5 AND B=4 AND C=3 THEN PRINT "A=5, b=4 and c=3" ELSE PRINT "Not ="
|
5 print chr$(147);
7 ti$="000000"
8 dimv,u,a,b,n,s,i,r,z,x,h,y,d
9 for i=37888to38399:pokei,6:nexti
10 x1=20:y1=21:z=0
20 i1=-1.0:i2=1.0:r1=-2.0:r2=1.0
30 h=(r2-r1)/x1:s2=(i2-i1)/y1:s=4117:d=440:yh=y1/2
40 fory=ztoyh:i=i1+y*s2:r=r1
60 forx=ztox1:v=r:u=i:forn=48to33step-1:a=v*v:b=u*u
110 ifa+b<=4thenu=u*v*2+i:v... |
10 REM TEST OPEN READ COMMANDS
20 OPEN "data.txt" FOR INPUT AS FILE #1
30 INPUT #1, A,B,C
40 INPUT #1, N$
50 CLOSE FILE #1
60 PRINT N$,A,B,C
99 END
|
10 'MY FIRST PROGRAM IN CHAPTER 4
20 INPUT "WHAT IS THE PRINCIPAL"; PRINC
30 PRINT
40 IF PRINC < 2500 THEN LET INTE = PRINC * .08
50 IF PRINC > 2500 THEN LET INTE = PRINCE * .1
60 PRINT "The tax is..."; INTE
70 END
|
DIM N, w, i, j AS INTEGER
CLS
INPUT "N: ", N
PRINT
FOR w = 1 TO N
FOR i = 1 TO N - w + 1
FOR j = i TO i + w - 1
PRINT j;
NEXT
PRINT
NEXT
NEXT
|
RANDOMIZE TIMER
CLS
SCREEN 12
T = 240
START:
FOR Y = 1 TO 600 STEP 1
X = INT(RND * 500) + 1
X = TAN(X)
X = X + T
FOR DELAY = 1 TO 3000 STEP 1
NEXT DELAY
XX = TAN(X - T)
XX = XX + T
YY = Y
LINE (Y, X)-(YY, XX)
IF INKEY$ = " " THEN END
NEXT Y
|
40 PRINT CHR$(5);:PRINT "White"
50 PRINT CHR$(28);:PRINT "Red"
60 PRINT CHR$(30);:PRINT"Green"
70 PRINT CHR$(31);:PRINT"Blue"
80 PRINT CHR$(144);:PRINT"Black";CHR$(5);"(Black)"
90 PRINT CHR$(156);:PRINT"Magenta"
100 PRINT CHR$(158);:PRINT"Yellow"
110 PRINT CHR$(159);:PRINT"Cyan"
120 PRINT CHR$(18);"REVERSE SCREEN";CHR$... |
' *** Marty Thornley ***
' *** Period 3 ***
' *** June 8,1993 ***
' *** FALLING BALL
' *** THIS PROGRAM USES ANIMATION TO ILLUSTRATE A FALLING BALL. ***
' *** MAJOR VARIABLES :
' *** BALLRADIUS RADIUS OF THE BALL
' *** DUSTRADIUS AREA IN WHICH DUST WILL FLY W... |
10 print chr$(147)
20 print "type encoder"
30 get a$ : if a$="" then 30
40 if a$<"a" then 90
50 if a$>"z" then 90
60 a=asc(a$)+2
70 if a>90 then a=a-26
80 a$=chr$(a)
90 print a$;
100 goto 30 |
RANDOMIZE TIMER
ON ERROR GOTO er
DIM x1(100), x2(100), x3(100), y1(100), y2(100), y3(100), z1(100), z2(100), z3(100), c(100)
nr = 1
los:
SCREEN 12
fl = nr
FOR t = 1 TO fl
x1(t) = INT(RND * 640)
y1(t) = INT(RND * 480)
z1(t) = INT(RND * 100)
x2(t) = INT(RND * 640)
y2(t) = INT(RND * 240)
z2(t) = INT(RND... |
5 a=0
10 &tom:PRINT "tom"
20 GOSUB &jerry
25 a=a+1:IF a>10 THEN END
30 GOTO &tom
100 &jerry:
110 PRINT "jerry"
120 RETURN
|
100 REM Program to demonstrate printing all 255
110 REM PC characters in color.
120 SCREEN 0,1:WIDTH 40:LOCATE ,,0:COLOR 7,0,0:CLS:KEY OFF 'Set screen
130 DEF SEG 'Point segment to BASIC interpreter
140 REM Machine-language subroutine will be stored
150 REM in SUBRT$
160 SUBRT$=""
170 R... |
10 REM 'STRING$' TEST PROGRAM
20 PRINT "ENTER ANY LETTER, NUMBER OR SYMBOL? ";
30 INPUT A$
40 PRINT STRING$(20,".");
50 PRINT STRING$(20,A$);
99 END
|
Version =21
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
DataEntry = NotDefault
DefaultView =0
ScrollBars =2
... |
DECLARE SUB KeyInit ()
RANDOMIZE TIMER
COLOR 15, 0
ShipWorld = 1
CLS
INPUT "Enter Identity Code:", IdentityCode$: PRINT
PRINT "Identity Code Accepted, "; IdentityCode$; "."
PRINT "OBC6R unit ANX1201419 has been activated."
SLEEP
CLS
KeyInit
Battery = 1000
Battery2 = 50
'World = INT(RND * 4) + 1
World = 1
IF World = 1 T... |
\*****************************************************************************
\*** Local Price Report Data File Functions
\*** Version A Paul Flanagan 28.06.93
\***
\*** Version B Clive Norris 24.11.93
\*** AUTH.NUM$, STOCK.FIG$ and RETRIEVAL.FLAG$ replaced fil... |
'Nummernschlange
CLS
INPUT "Level"; a
kette$ = SPACE$(10)
FOR x = 1 TO a + 6
kette$ = kette$ + LTRIM$(STR$(INT(RND * 9 + 1)))
NEXT x
CLS
LOCATE 3, 5: COLOR 8: PRINT LEFT$(kette$, 10);
COLOR 15: PRINT MID$(kette$, 11, 1);
COLOR 7: PRINT MID$(kette$, 12, a - 1);
COLOR 12: PRINT MID$(kette$, a + 11, 1);
COL... |
Attribute VB_Name = "FINAN_ASSET_SYSTEM_ATR_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.
'Over the years many commodity trading advisors, propriet... |
10 rem 1200,8n1
20 print "{clear}{white}"
30 open2,2,4,chr$(8)+chr$(0):rem open the serial from user port
40 get#2,s$:rem get from serial to prime the pump
100 rem main loop
110 rem ---------
120 get#2,s$:rem get byte from serial
130 if s$="[" then print chr$(13)+"{white}{reverse on}";: goto 200
140 if s$="]" t... |
10 REM TEST MULTIPLE NEXT
20 FOR I = 1 TO 3
30 FOR J = 1 TO 2
40 PRINT I,J
50 NEXT ,I
60 PRINT "DONE"
99 END
|
Attribute VB_Name = "H_AddLegend"
'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
'* Module : H_AddLegend - модуль создания легенды для сниппетов
'* Created : 15-09-2019 15:48
'* Author : VBATools
'* Contacts : http://vbatools.ru/ https://vk.com/vbatools
'* Copyri... |
REM WORMS................
0 REM *************************
1 REM W O R M
2 REM *************************
5 POKE56900,0
10 GOTO1900
100 FORBU=1TOBT
102 FORZ=.TOML
105 J=PEEK(KF)
106 IFWTHENWL=F:F=0
160 IFJ=DOTHENIFD+ITHEND=I:F=SD:GOTO200
170 IFJ=RITHENIFD+1THEND=1:F=SR:GOTO200
18... |
SUB Main
CALL f 3.14
CALL h$ 2, "*"
END SUB
SUB h$(e, s$)
PRINT e
PRINT s$
END SUB
SUB f(x)
PRINT x
END SUB
|
'$INCLUDE: 'C:\FACT3\FONTS\FACTURA.BI'
TYPE LINFACTUR2
REFALBARAN AS STRING * 9
CODART AS STRING * 18
CONCEPTE AS STRING * 40
PREU AS LONG
QUANTI AS SINGLE
DTO AS INTEGER
IMPORT AS LONG
MARCAR AS STRING * 1
END TYPE
TYPE LINIAFAC2
LINIA(1 TO 100) AS LINFACTUR2
END TYPE
D... |
CLS
KEY 10, "fight": KEY 9, "look"
RANDOMIZE TIMER
BUTLERRM = 27: WOLFHP = 30: WOLFMAXHP = 30
HP = 30: MAXHP = 30: RM = 7
GOSUB 5: GOTO 940
1 TIME = TIME + 1
IF WOLFHP < 30 THEN
WHEALING = WHEALING + 1
IF WHEALING >= 3 THEN WHEALING = 0: WOLFHP = WOLFHP + 1
END IF
IF HP < MAXHP THEN
HEALING = HEALING + 1
IF HEALING >= ... |
10 ' Teeny Tiny Text Adventure v1.1 By Tim Ekdom.
20 ' in lines 10 through 20.
30 'converted to AMSTRAD CPC 042019 by SRS www.cpcwiki.eu
40 MODE 2:INK 0,13:BORDER 13:INK 1,0
100 DEFINT A-Z:DEFSTR T:T=" ":Z=0:N=Z:I=1:GOSUB 3100:CLS
102 PRINT:PRINT T;"Time: 4:37 PM, mid November":CT=Z:GOSUB 1650
104 PRINT T;"Location: ... |
100 rem ***RANDOM MELODY GENERATOR WITH STRINGS***
110 rem ***COPYRIGHT 1972 BY DYMAX***
120 dim m(100) rem ,a$(24),k$(2),j$(2),g$(3)
130 a$="A A#B C C#D D#E F F#G G#"
140 rem
150 print "DO YOU WISH INSTRUCTIONS";
160 input g$
170 if g$="NO" then 260
180 print "I AM A (SLIGHTLY) MAD COMPOSER. MY MELODIES MAY"
190 print... |
10 ! &
! Program name: [1,2]PRTWEK Compiled with SCALE 0 on V07.0 &
! Decompiled on 03-Feb-88 at 05:52 PM by UNBAC Version 1
1000 Z%=0% &
\ W%=1% &
\ T%=2% &
\ B%=3% &
\ M%=4% &
\ B%(T%),B%(B%)=-W% &
\ ON ERROR GOTO 20000 &
\ OPEN "$MONEY.ACT" FOR INPUT AS FILE T%, RECORDSIZE 8192. &
\ OPEN "$MONEY.M... |
10 a=123
20 b=456
30 x$=str$(a)
40 y$=str$(b)
50 print "a+b=";a+b
60 print "str$(a)+str$(b)=";x$+y$ |
10 :REM'BATCHG - battery charger - 27 APR 07
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
80 COLOR 15,2,1
90 PRINT " BATTERY CHARGER"TAB(57)"by George Murphy VE3ERP ";
100 COLOR 1,0:PRINT STRING$(80,223);
110 COLOR 15,2:LOCATE C... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =623638275
Begin Form
Modal = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
... |
10fori=0to1000
20x=(i+56)*3.456
30nexti
40 printx |
DECLARE SUB AVEVAR (DATQ!(), N!, AVE!, VAR!)
DECLARE FUNCTION BETAI! (A!, B!, X!)
SUB TPTEST (DATA1(), DATA2(), N, T, PROB)
CALL AVEVAR(DATA1(), N, AVE1, VAR1)
CALL AVEVAR(DATA2(), N, AVE2, VAR2)
COV = 0!
FOR J = 1 TO N
COV = COV + (DATA1(J) - AVE1) * (DATA2(J) - AVE2)
NEXT J
DF = N - 1
COV = COV / DF
SD... |
10 print "instr of 'i like MCX BASIC!!!' (MCX) is ", instr("i like MCX BASIC!!!","MCX") |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =7440
DatasheetFontHeight =11
ItemSuffix =5
DatasheetGridlin... |
Attribute VB_Name = "MOD_DateTime"
Option Explicit
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Priva... |
10 NULL 40
20 INPUT "Enter name of file to send to 68000 system";FI$
30 OPEN "I",1,FI$
35 INPUT "Now exit Transparent Mode and type 'LO2 ='",JUNK$
40 LINE INPUT #1,A$
50 PRINT A$
55 IF EOF(1) THEN 100
60 GOTO 40
100 CLOSE
110 END
|
1 PMODE0:PCLEAR1
2 'CAVEHUNT,AN ADVENTURE GAME
4 'BY CHARLES B. LEVINSKI, 10 SOUTH SIDE AVENUE, SOUTH RIVER, N.J. 08882
5 CLS
6 PRINT@236,"CAVEHUNT":PRINT@295,"KEY ENTER TO BEGIN":KP=RND(1000):IFINKEY$=""THEN6
10 DIMA(22,22):DIM F(5,7)
11 KP=0
12 CLS:PRINT"PROGRAM IS PROCESSING-PLS WAIT"
13 FORI=1TO5
15 FORN=1TO7
16 R... |
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
CloseButt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.