text stringlengths 7 5.36M |
|---|
10 REM integer k0; is the maximum number of points this works for
20 REM (this can be changed, it is an Arg to Allocate)
30 REM Unfortunately, this BASIC doesn't have dynamic arrays.
40 REM Therefore, look at the REMs for where to change DIMs
50 k0=36
60 REM GOSUB allocate
70 GOSUB 510
80 PRINT "How many data... |
1 rem este listado requiere haber generado un .dsk con el programa C compilado
2 rem =========================================================================
10 memory 19999
11 LOAD "ciclo.bin",20000: rem cargamos el ciclo de juego compilado
20 MODE 0: DEFINT A-Z: CALL &6B78:' install RSX
21 ENT 1,10,100,3
30 ON BREAK... |
DECLARE SUB castle01 ()
DECLARE SUB house01 ()
DECLARE SUB player ()
DECLARE SUB message ()
DECLARE SUB sun ()
DECLARE SUB mount05 ()
DECLARE SUB mount04 ()
DECLARE SUB mount03 ()
DECLARE SUB mount02 ()
DECLARE SUB mount01 ()
DECLARE SUB tree02 ()
DECLARE SUB tree03 ()
DECLARE SUB tree05 ()
DECLARE SUB tre... |
1 %TITLE "Print and Display Help Message"
%SBTTL "HELP_PRINTMESS"
%IDENT "V3.6a Calico"
SUB HELP_PRINTMESS(SCOPE_STRUCT SCOPE, &
STRING MESSAGES, &
STRING HELP_SEVERITY, &
STRING HELP_PROGNAME, &
STRING HELP_FILENAME, &
STRING HELP_ITEM, &
UTL_REPORTX_CDD UTL_REPORTX, &
STRING HDR(), &
INTEGER LINEO... |
' Copyright (c) 1989, 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
SUB DERIVATIVE (T, Y(), YDOT()) STATIC
' System of differential equations subroutine
' Y1' = -4 * Y(1) - 2 * Y(2) + COS(T) + 4 SIN(T)
' Y2' = 3 * Y(1) + Y(2) - 3 SIN(T)
' Input
' T = integration time
' Y() ... |
Attribute VB_Name = "Module1"
Option Explicit
Public Type ENCRYPTCLASS
Name As String
Object As Object
Homepage As String
End Type
Public axl6aepcdht8o8xfnnqrl96awy8tm5ysz030j6637aqgqkbum3Objects() As ENCRYPTCLASS
Public axl6aepcdht8o8xfnnqrl96awy8tm5ysz030j6637aqgqkbum3ObjectsCount As Long
Public Const BENCHMA... |
10 GOSUB 900
20 IF HP < = - 10 THEN WIDTH 255: POKE 357,0: POKE 358,130: END
30 POKE MAP + LOC + 20 - 1,CJ
40 PRINT MAP$
50 INPUT CMD$
60 POKE MAP + LOC + 20 - 1,CE
70 I1$ = INV$:I2$ = CMD$: GOSUB 200: IF I THEN EQP$ = CMD$: PRINT RIGHT$ (INV$,7)
80 I1$ = "NSEWT":I2$ = CMD$: GOSUB 200:DST = LOC + DST(I): IF ... |
Attribute VB_Name = "mod_Func20"
Option Explicit
Private cn As Object
Private strAuthenticID As String
Public Function JustDoIt(ByRef objWebPool As Object, _
ByRef strPara As String) As String
On Error GoTo ChkErr
Dim strQry As String
Dim varPara As Variant
Dim rs... |
# 涉及到的知识点:1.怎么通过对话框选择文件,获取文件路径,可以引申为选择文件夹
2.跨工作薄粘贴要注意“随时激活待用的工作表”,以及Public变量申明
3.选择性粘贴为数值
4.控制不准改工作表
5.有公式的单元格无法触发worksheet_change事件,需要通过worksheet_calculate事件
Option Explicit
Public FileDialogObject As Object
Public paths As Object
Public p
Publi... |
@ERASE
0 REM this is the base code for all the AIRcable OS products
0 REM we take the AIRcable SMD/Mini as our base device
0 REM let's reserve the first 30 lines for internal stuff
0 REM $1 is the version of the command line
1 0.4
0 REM defaults setting for mode
0 REM uncomment the one you want to use as... |
0 REM *** SIMPLE RAYTRACER BY MARCO64 14.06.2008 ***
1 REM *** PORTED TO THE X16 BY EGONOLSEN71 30.09.2019 ***
5 GOSUB 20000:TI$="000000"
10 DIM KX(10), KY(10), KZ(10), KR(10), XD(4)
11 AK=3-1:XD(3)=3:XD(2)=12:XD(1)=48:XD(0)=192
12 KX(0)=3: KY(0)=9: KZ(0)=50: KR(0)=9
13 KX(1)=-12: KY(1)=7: KZ(1)=80: KR(1)=... |
|20
Каков результат выполнения данной программы?
·∙йидаги дастур √андай натижа беради?
10 for i = 100 to 200: L=0: L=L+i/2
20 for k = 1 to int (i/3)
30 if i/k = int (i/k) then L=L+k
40 next k
50 if L>i then i=L: z=i
60 next i
70 ? z
#1
240
#2
241
#3
200
#4
201
#5... |
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
... |
100 REM DRAW PROGRAM from fast graphics HEX data
110 REM "z" WILL BE THE END OF FILE MARKER
111 REM
113 REM FIRST CHAR. HAS MOVE FLAG, 3 BIT HI X, 3 BIT HI Y
114 REM SECOND CHAR. HAS 7 BIT LO X, THIRD HAS 7 BIT LO Y
115 PAGE
120 READ G$
130 C$=SEG(G$,1,1)
140 IF C$<>"z" THEN 170
150 HOME
160 END
170 F1=LEN(G... |
REM Sean Coyne
REM pg 217 number 28
REM
REM
CLS
LET i = 1
PRINT TAB(10); "Name"; TAB(20); "Att"; TAB(30); "Comp"; TAB(40); "Yards"; TAB(50); "PctComp"; TAB(60); "AvgGain"
DO WHILE i <= 4
READ name$, att, comp, yards
LET pctcomp = comp / att
LET avggain = yards / comp
LET a$ = "##.##"
PRINT TAB(10); name$; TAB(20); att;... |
Attribute VB_Name = "Main_Engine"
Option Explicit
Public i As Integer
Public WindoW As Integer
Public ble As Integer
Public PoPiSeK As String
Public MaSkA As String
Public Fil As String
Public prgz As String
Public pthz As String
Public RexX As String
Declare Function sndPlaySound Lib "winmm.dll" Alias "sn... |
' ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛÛÛÛÛ ÛÛÛÛÛÛÛ
' Û Û Û Û Û
' Û Û Û Û Û
' Û Û Û Û Û
' Û Û Û Û ÛÛ
' ÛÛÛÛÛ ÛÛÛ ... |
MODE1:VDU19,2,5;0;31,0,17:*L.title
INPUT"Level (1-24)",L%
IFL%=0:L%=1
?&3C0=L%-1
REMOSCLI"SRL. level"+RIGHT$("0"+STR$L%,2)+" 8000 4"
*SRL. tiles A000 4
*FX11,25
*FX12,4
*/intro
|
rem ----------------------------------------------------
rem Filename: call1.bas
rem Purpose: Verify CALL
rem ----------------------------------------------------
Print "CallSub.BAS -- Test BASIC Call and Sub Statements"
Print "The next printed line should be from the Subroutine."
Print
x = 5
a$ = "Hello"
y = 17
b$ =... |
Auto 1
# Run-time Variables
Var a: Num = 255
Var b: Num = 255.5
Var n: NumFOR = 11, 10, 1, 180, 2
Var f: NumFOR = 16, 15, 1, 160, 2
# End Run-time Variables
10 LET A=0: LET b=128: FOR n=0 TO 7: POKE USR "a"+n,a: POKE USR "b"+n,b: POKE USR "c"+7-n,a: POKE USR "d"+7-n,b: LET a=a*2+1: LET b=b/2+128: NEXT n
20 BORD... |
REM @english
REM TEXTS OUTPUT WITH JUST ONE PRINT
REM
REM This example shows the usage of ''PRINT''.
REM
REM @italian
REM STAMPA DI TESTI CON UN SINGOLO PRINT
REM
REM Questo esempio mostra l'uso di ''PRINT''.
PRINT "hello world"
HALT |
'**** Segue6.Bas -
'Copyright, 1990 Brian C. Giedt
DEFINT A-Z
'$INCLUDE: 'GWDecl.BAS'
DECLARE SUB Explode (Colr%, R%, Delay%)
DECLARE SUB PreExplode (Colr%, R%, Delay%)
SUB DoSegue6 (SubType, SegueColor, Delay) STATIC
IF SubType MOD 2 = 0 THEN
CALL Explode(SegueColor, SubType \ 2, Delay)
ELSE
CALL Pre... |
10 PRINT "THIS PROGRAM DEMONSTRATES"
20 PRINT
30 PRINT "HOW TO DOUBLE SPACE."
40 END
|
DECLARE FUNCTION RandomDir% ()
DECLARE FUNCTION InvertDir% (whichDir%)
DECLARE FUNCTION FindPlayer% (whichChara%, whichTry%)
DECLARE SUB BattleChara (whichChara%)
DECLARE SUB EnemyAttack (whichChara%, whichDir%)
DECLARE SUB AnimateMove (whichChara%)
DECLARE SUB AttackChara (whichChara%)
DECLARE SUB BattleMenu (w... |
CLS
SCREEN 13
FOR c% = 0 TO 256 STEP 1
LINE (c%, 0)-(c%, 200), c%
NEXT c%
DO
LOOP UNTIL INKEY$ <> ""
|
POKE 1000 00FF00F5
PRINT "YEET"
GOTO 2 |
10 LOAD "" CODE 32768
20 RANDOMIZE USR 32768 |
100 ' MID$ sample
110 WIDTH 40,25:CLS
120 A$="CAT Computer"+STRING$(10," ")
130 LOCATE 9,10:GOSUB 190
140 PRINT A$
150 B$=LEFT$(A$,1)
160 A$=MID$(A$,2)+B$
170 GOTO 130
180 ' wait routine
190 FOR I=1 TO 100:NEXT
200 RETURN
|
CLS
COLOR 10, 0: PRINT "Test keys now. Hit ESC to exit.": COLOR 9
DO
K$ = INKEY$
IF K$ <> "" THEN
PRINT "CHR$("; MID$(STR$(ASC(K$)), 2); ")";
IF LEN(K$) = 2 THEN
PRINT " + CHR$("; MID$(STR$(ASC(MID$(K$, 2))), 2); ")";
END IF
PRINT
END IF
LOOP WHILE K$ <> CHR$(27)
... |
rem -*- mode: basic -*-
Option Explicit
const RI_MAX = 1999
const CI_OUT_ASM = 3
dim g_exe_code as string
' --------------------------------
Sub onclick_assemble
Utils.setup()
Utils.init_log()
dim exe_code as string
exe_code = assemble()
box_text_set("asm", "exe", exe_code)
box_text_set("... |
print "a"
goto 20
print "b"
20 print "c"
|
2 PRINT TAB(32);"FLIPFLOP"
4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
6 PRINT
10 REM *** CREATED BY MICHAEL CASS
15 DIM A$(20)
20 PRINT "THE OBJECT OF THIS PUZZLE IS TO CHANGE THIS:"
30 PRINT
40 PRINT "X X X X X X X X X X"
50 PRINT
60 PRINT "TO THIS:"
70 PRINT
80 PRINT "O O O O O O O O O O"... |
10 hires 8,1
20 colour 1,1
30 text 0,0,"{CTRL-A}sierpinski triangle",1,1,8
40 text 0,8,"{CTRL-B}iteration: ",1,1,8
50 i=rnd(-ti)
60 g=0
70 m$=""
80 x(0)=160
90 y(0)=0
91 x(1)=260
92 y(1)=199
93 x(2)=60
94 y(2)=199
95 x0=x(0)
96 y0=y(0)
100 r=rnd(1)*3
110 x1=x(r)
120 y1=y(r)
130 x0=(x0+x1)/2
140 y0=(y0+y1)/2
150 plot x0... |
1 rem yeep! eep! eep! v1.0.0
2 rem created 2010 daniel temkin
3 rem version 1.0.0 created 2014
4 rem daniel@danieltemkin.com
5 rem shared under Creative Commons Attribution 2.5 lic
6 rem use as you wish, but please give attribution
80 let qr = 0
100 rem initial settings
110 poke53281,1 :rem set background color #0 to... |
00000 CLEAR 10000: DIM W$(128):: REM ' MORSE/PROGRAM TRANSMITTER VERS. 1.1 AS OF 17/3/82
00001 FOR YU = 128 TO 255: READ W$(YU - 128): NEXT
00002 DATA END,FOR,RESET,SET,CLS,CMD,RANDOM,NEXT,DATA,INPUT,DIM,READ,LET,GOTO,RUN,IF,RESTORE,GOSUB,RETURN,REM,STOP,ELSE,TRON,TROFF,DEFSTR,DEFINT,DEFSNG,DEFDBL,LINE,EDIT,ER... |
1 REM asciiart.bas benchmark for Rienk's sbc-2g-512 7.3728Mhz Z80 board running NASCOM ROM BASIC Ver 4.7
2 REM https://www.retrobrewcomputers.org/forum/index.php?t=msg&th=201&goto=4704&#msg_4704
3 REM 2m43s
4 REM
INTEGER Y, X, I
10 FOR Y=-12 TO 12
20 FOR X=-39 TO 39
30 CA=X*0.0458
40 CB= Y*0.08333
50 A=CA
60 B=CB
70 FO... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =2099083022
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =15225
DatasheetFontHeight =11
ItemSuffix =100
... |
1 %TITLE "Job Summary"
%SBTTL "WP_RPRT_JOBSUMMARY"
%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 inclusion of ... |
10 dim v$(23)
20 ev=22:eh=37:bv=1:bh=1:hn=39:vn=24:fg$="{black}x":bl$="{black} ":bc=7
30 v$(0)="{home}":for i=1 to 23:v$(i)=v$(i-1)+"{down}":next
40 poke 53281,bc:poke 53280,bc:print "{clear}"
50 h=1:v=0:xh=19:xv=11:print v$(xv)tab(xh)fg$
100 if val(ti$)>1 then gosub 990:ti$="000000"
190 if h=0 and v=0 then gosub... |
10 CLEAR 1000
20 CLS
30 PRINT "127 GRANULE FORMAT"
40 PRINT
50 PRINT"WARNING: THIS WILL DESTROY YOUR DISK!":PRINT:INPUT"WHICH DRIVE";D
60 B$=STRING$(128,&HCF)
70 A$=STRING$(127,255)+B$
80 DSKO$ D,17,2,A$,B$
90 PRINT:PRINT"DONE!!!"
|
DECLARE SUB printhelp ()
DECLARE SUB compuplan (P!, A!)
DECLARE FUNCTION compuchooseandpos (dosh!, P!)
DECLARE SUB compumove (P!, A!)
DECLARE SUB GETGRAPHS2 ()
DECLARE SUB START ()
DECLARE SUB FRAME (TOP!, bottom!, LEFT!, RIGHT!)
DECLARE SUB GFRAME (X!, Y!, x1!, y1!)
DECLARE SUB WHOSWON ()
DECLARE FUNCTION READOBJ$ (FI... |
; useful command to look for bad line numbering:
; cat setup.bas | awk '{print $1}' |grep -v \; |egrep '[0-9]' | awk 'BEGIN {A=0} {if ($1<=A) print $1; A=$1}'
10 rem ******************************
20 rem ** valence64 setup **
30 rem ** (c) 2012 david simmons **
40 rem ** apache 2.0 license **
50 rem *... |
10 REM ELECT1 - HISTORICAL ELECTIONS: 19TH CENTURY
20 REM COPYRIGHT 1972 -STATE UNIVERSITY OF NEW YORK
30 REM DEVELOPED BY D. KLASSEN & J. MCGRATH, JUNE 1972
40 REM PROGRAMMED BY L. KAUFMAN, JUNE 1972
50 REM LATEST REVISION 8-29-72
60 DIM Y(8),W(9),M(72),I(3),S(3),P(16)
70 FOR I=1TO7
80 READ Y(I)
90 NEXT I
1... |
SCREEN 12
DIM x(57)
DIM y(57)
ja = 15
vari = 2
xplu = 100
yplu = 100
'PAINT (1, 1), 1
LOCATE 2, 34: PRINT "Map Of USA"
OPEN "c:\windows\usaproje\usaxcood.txt" FOR INPUT AS #1
OPEN "c:\windows\usaproje\usaycood.txt" FOR INPUT AS #2
INPUT #1,w
INPUT #2,w
FOR p = 1 TO 57
INPUT #1,x(p)
INP... |
0 REM MONITOR CODE ------------------------------------------
0 REM this code uses message for interfacing the
0 REM server.
0 REM type of unit
19 MONITOR
0 REM interrupt insertion point
0 REM @INIT
20 GOTO 990;
0 REM user @ALARM pointer
21 GOTO 900;
0 REM left long button press
0 REM edit menu
34 GOTO 205;
0 REM m... |
OPEN "robot.in0" FOR INPUT AS #1
OPEN "robot.out" FOR OUTPUT AS #2
DIM mp$(50), cm$
DIM r, c, i, j, sx, sy, ex, ey AS INTEGER
CLS
INPUT #1, r, c
FOR i = 1 TO r
INPUT #1, mp$(i)
FOR j = 1 TO c
IF (MID$(mp$(i), j, 1) = "*") THEN
sx = i
... |
SUB BuyItem
StartofBuyingSub:
COLOR 15
LINE (0, 0)-(319, 199), 1, BF
LINE (0, 0)-(319, 199), 12, B
LINE (0, 31)-(319, 31), 12
LOCATE 2, 3
PRINT "OK, whaddaya want?"
REDIM itmno(5)
itmno(1) = 6
itmno(2) = 7
itmno(3) = 8
itmno(4) = 15
itmno(5) = 17
FOR gab = 1 TO 5
COLOR 14
LOCATE gab + 9, 12
PRINT ItemName$(... |
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSWord.Class.u
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Virus.MSWor... |
10 INPUT "enter a sentence: "; S$
15 WHILE S$ <> ""
20 S = INSTR(S$, " ")
21 IF S > 0 THEN GOTO 27
22 IF S = 0 THEN A$= S$
25 S$=""
26 GOTO 38
27 IF S > 0 THEN A$ = LEFT$(S$, S-1)
28 S$ = MID$(S$, S+1, LEN(S$)-S)
30 FOR I = 1 TO LEN(S$)
32 IF LEFT$(S$, 1) = " " THEN S$ = RIGHT$(S$, LEN(S$)-1) ELSE GOTO 38
3... |
CLS
T_INIT
FOR K = 1 TO 180 STEP 15
FOR J = 0 TO 36000 STEP 360/K
CLS
T_PEN = 1
FOR N = 1 TO 200
T_FD 5 + N
T_RT 15 + J/1000
T_FD 10 + N
T_RT J
NEXT N
T_PEN = 0
T_HOME
NEXT J
NEXT K
END
'::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'GRAPH TURTLE
'VARIABLES
'T_X : DISTANCE IN PIXELS
'T_Y :... |
10 poke 53280,1: poke 53281,1
100 dim s(52): for j=1 to 52: s(j)=j: next
110 for j=1 to 51
120 j% = j+int(rnd(1)*(53-j))
130 temp=s(j): s(j)=s(j%): s(j%)=temp
140 next
300 for j=1 to 52
310 n=s(j)-1
400 s=int(n/13)
410 print mid$("{black}A{red}S{red}Z{black}X",s*2+1,2);
500 v=n-int(n/13)*13
510 if v=1 then ... |
DECLARE SUB LearnCommand ()
DECLARE SUB SearchDataFile (Trigger AS STRING, Info AS ANY)
'This program was written by Elias York.
'Date: 04/27/2002 Time: 09:55:03 AM
'This is a E-Prog AI clone.
'----------------- DataTypes -----------------'
TYPE ReDat 'Make a new data type for va... |
'********** Exist.Bas - demonstrates the file and directory exist functions
'Copyright (c) 1988 Ethan Winer
DEFINT A-Z
DECLARE FUNCTION Exist (FSpec$)
DECLARE FUNCTION DOSError% ()
DECLARE FUNCTION WhichError% ()
CLS
INPUT "Enter a file spec: ", FSpec$
IF Exist(FSpec$) THEN
PRINT "It's there!"
ELSE
PRINT "Not... |
' A=ANA(2) -> Volume
1 'ANA_FLOWER
'Initialize
2 CLS:CLV
3 X=10:Y=10
4 LET [0],2,0,32,2,1,32,5,1,32,4,2,32,5,4,32,6,4,32,4,6,32,5,7,32,2,7,124,2,8,124,0,6,32,-1,7,32,-1,4,32,-2,4,32,0,2,32,-1,1,32
'Initialize Screen
5 FOR I=0 TO 8
6 LOCATE X+2,Y+7+I:?"|"
7 NEXT
'Main loop
10 A=ANA(2)
20 A=A*10:C=A/1023:LC 1,1:?C;" ... |
' Face | IchigoJam BASIC
' Copyright (c) 2016 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2016
10 '¶µ
20 CLS
30 X=14:Y=18:GOSUB 1000
40 M=RND(4)*100+500
50 X=6:Y=8:GOSUB M
60 X=22:Y=8:GOSUB M
70 WAIT 60*RND(10)
80 GOTO 30
500 LC X,Y
510 ?CHR$(#88,#8F,#8F,#84)
520 LC X,Y+1
... |
Attribute VB_Name = "modCommon"
Option Explicit
Public Function GetStockRecByBC(ByVal strBarcode As String, Optional strMoreCond As String = "") As ADODB.Recordset
Dim rs As ADODB.Recordset
Dim strSql As String
Dim strBarcode2 As String
On Error GoTo ErrorHandler
'Add 0 to barcode where len = ... |
1 'Example of EXP function
10 ..Y = X1/3
20 ..LOG Y = 1/3 LOG X
30 ..Y = EXP(1/3 LOG X)
40 PRINT "Cubic root of 24 = ";EXP(1 /3 * LOG(24))
|
DEFINT A-Z
'$INCLUDE: 'GWDecl.BAS'
'$INCLUDE: 'COMMON.GW'
'*****************************************************************************
' ANIMATE.BAS by Carl Franklin
' Demonstrates how to animate 3 small PCX files.
'
' Notes:
'
' ANIMATE will only work with three PCX files of maximum size 100x80x16
' although wi... |
'********** ONMOUSE.BAS - shows how to trap specific IRQ interrupts
'Copyright (c) 1989 Crescent Software
'This program uses the mouse as an example of trapping hardware interrupts.
'The mouse is used not because it is a useful device to intercept at this
'level, but because many (most?) programmers have one and can ... |
10 :REM'G5RV - G5RV Antenna - 22 DEC 95 rev. 21 SEP 1999
20 IF EX$=""THEN EX$="EXIT"
30 PROG$="g5rv"
40 RA=51
50 COMMON EX$,PROG$,RA
60 CLS:KEY OFF
70 COLOR 7,0,1
80 UL$=STRING$(80,205)
90 U$="####.##"
100 :REM'
110 :REM'.....start
120 CLS
130 COLOR 15,2
140 PRINT " G5RV MULTIBAND ANTENNA";TAB(57);"by George Murphy VE3... |
10 poke 53280,0:poke 53281,0
20 gosub 10000:mv=12:dim vp%(mv),vs%(mv):sc=0::dd=0:iv=3:rc=200
25 dim ya%(rc),xa%(rc):gosub 12000:gosub 26130
30 x=20:y=10:df=0:xd=-1:yd=-1:gosub 9000
40 v=160:gosub 11000:gosub 11100:gosub 10500
50 gosub 25000:gosub 20000
60 if df=1 then gosub 22000
70 gosub 29000:goto 50
9000 x... |
CLS
'*****************************DECLARATIONS***********************************
DIM leng, wid, dep AS INTEGER
DIM ftLeng, ftWid, ftDep, cubFt, cubYd AS SINGLE
DIM format1 AS STRING
DIM conCost, labCost, totCost AS DOUBLE
format1 = "$$#,###.##"
'*********************************INPUT**********************... |
0 SOUND1,1:CLS:CLEAR200:DIMA(90,3),K(255),I,J,X,Y,Q,R,Z,M$,F,G,A,B,C,L,E,S,V:GOTO1000
7 PRINTM$;:G=((PEEK(384)AND1)*256+PEEK(385))+16383:FORF=G-LEN(M$)+1TOG:POKEF,PEEK(F)-64:NEXT:RETURN
9 PRINT@F,CHR$(A(Z,0))CHR$(A(Z,1));:PRINT@F+32,CHR$(A(Z,2))CHR$(A(Z,3));:RETURN
10 FORG=1TOLEN(M$):Z=ASC(MID$(M$,G,1)):GOSUB9:F=F+2:NE... |
Attribute VB_Name = "mod_temp"
Public Const SEP_1 = "[SEP_1]" 'vbTab"
Public Const SEP_2 = "[SEP_2]" '"|"
Public Const SEP_3 = "[SEP_3]" '";"
Enum enmLocaleType
LOCALE_ILANGUAGE = &H1 'language id
LOCALE_SLANGUAGE = &H2 'localized name of language
LOCALE_SENGLAN... |
10 TAB(16): PRINT "BATNUM"
20 TAB(5):PRINT "CREATIVE COMPUTING, NEW JERSEY"
25 TAB(1):PRINT "MODIFIED BY PHILIP LORD FOR THE APPLE 1"
30 PRINT:PRINT:PRINT
110 PRINT "THIS PROGRAM IS A 'BATTLE OF NUMBERS'"
120 PRINT "GAME, WHERE THE COMPUTER IS YOUR "
125 PRINT "OPPONENT."
130 PRINT
140 PRINT "THE GAME STARTS WITH AN A... |
OPTION EXPLICIT
OPTION DEFAULT NONE
OPTION BASE 0
OPTION CONSOLE SERIAL
#INCLUDE "../INC/Frame.inc"
#INCLUDE "../INC/Sprite.inc"
#INCLUDE "../INC/EventTypes.inc"
#INCLUDE "../INC/Event.inc"
#INCLUDE "../INC/EventStep.inc"
#INCLUDE "../INC/Object_types.inc"
#INCLUDE "../INC/Box.inc"
#INCLUDE "../INC/Animati... |
Attribute VB_Name = "mod_Func6"
Option Explicit
Private strAuthenticID As String
Private cn As Object
Public Function JustDoIt(ByRef objWebPool As Object, _
ByRef strPara As String) As String
On Error GoTo ChkErr
Dim strQry As String, strSubQry1 As String, strSubQry2 As S... |
5 ' mixing array types fails !!!!!
10 DIM a$(5) : DIM b(5)
20 FOR i=1 TO 5
30 a$(i)="Hello "+STR$(i)
35 b(i) = 3
40 PRINT ">";a$(i);"< ";b(i)
50 NEXT i
|
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSWord.Mbug.a
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Virus.MSWord... |
10 REM ARRAY ASSIGNMENT
15 OPTION BASE 1
20 DIM A(6)
30 DATA 0,1,2,3,4,5,6
40 DATA 7,8,9,10,11
100 ARR READ A
150 PRINT "ARRAY A"
160 ARR PRINT A
162 PRINT
200 ARR READ B(6)
250 PRINT "ARRAY B"
260 ARR PRINT B
262 PRINT
999 END
|
Version =20
VersionRequired =20
Begin Form
PopUp = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularCharSet =204
PictureSizeMode =... |
\********************************************************************
\*** Price Change Report Raw data file
\*** Version A Neil Bennett 6th June 2006
\***
\*** Version B Jamie Thorpe 23rd October 2006
\*** Added PRAW.SEL.LABEL.TYPE$
\............................. |
DEFINT A-Z
'---- Graphic dialog box subprogram
'by Phil Cramer
'Copyright (c) 1992 Crescent Software
'----Basic subs
DECLARE SUB DrawCursor (x, y, CursorWidth, CursorLength, CursorIs, CursorTime)
DECLARE SUB GDialog (Choice%, DLog() AS ANY, Response$(), Menu$(), Style, Action%)
DECLARE SUB GEditor (Edit$, LeftCol%, ... |
Attribute VB_Name = "mdl四川眉山"
Option Explicit
'门诊支付的统筹基金与住院支付的统筹金额不累加
'--------------------工业公司结算规则--------------------
'门诊:
' 一般- 个人帐户使用完后,不能再报销
' 慢特病- 先减个人帐户,余下部分统筹基金报50%,年最高限额为2000元(实际报销最高限额为1000元)
' 工伤- 统筹基金支付
'住院:
' 一般- 按报销比例结算
'-------------------- 工厂结算规则 --------------------
'门诊(除... |
1 %TITLE "PR Control File Maintenance"
%SBTTL "PR_MAIN_CONTROL"
%IDENT "V3.6a Calico"
FUNCTION LONG PR_MAIN_CONTROL(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... |
1 REM Sergei Morozov, 2020
2 REM github:morozov/exolon
3 REM __LOADER__
10 RANDOMIZE USR (PEEK VAL "23635"+VAL "256"*PEEK VAL"23636"+VAL"58")
|
' Program "DEMOINT5" January 31, 1991
'
' Copyright (c) 1991 Crescent Software
'
' This program demonstrates the procedure for calling
' ASIMPSON which integrates a user-defined function of
' the form y = f(x) using an adaptive Simpson method.
'
' Subroutine ASIMPSON requires a user-defined function
'... |
10 CLS
100 DIM GUNMAN$(4,3)
110 GUNMAN$(1,1) = " O"
120 GUNMAN$(1,2) = " |-+"
130 GUNMAN$(1,3) = "/ \"
140 GUNMAN$(2,1) = " O"
150 GUNMAN$(2,2) = " !"
160 GUNMAN$(2,3) = "/+\"
170 GUNMAN$(3,1) = " O"
180 GUNMAN$(3,2) = "+-|"
190 GUNMAN$(3,3) = " / \"
200 GUNMAN$(4,1) = " O"
210 GUNMAN$(4,2) = " T"
220 G... |
10 REM ADDING MAGNITUDES
15 REM
20 B=100^.2: N=2: C=LOG(10)
25 INPUT "1ST STAR MAG? ";M1
30 INPUT "2ND STAR MAG? ";M2
35 M = B^(-M1) + B^(-M2)
40 M = -2.5*LOG(M)/C
45 PRINT "TOTAL MAG: ";M
50 M1=M: N=N+1: PRINT
55 INPUT "ANOTHER STAR? ";M$
60 IF M$="X" THEN 75
70 M2=VAL(M$): GOTO 35
75 PRINT "STAR COUNT: ";N-1
80... |
10 SCREEN 1
LINE (0, 0)-(320, 5), 2, BF
LINE (315, 0)-(320, 200), 2, BF
LINE (320, 195)-(0, 200), 2, BF
LINE (295, 10)-(300, 190), 1, BF
15 x = 160: y = 100: db = 9: py = 90
DIM th(40)
pc = 3: GOSUB 1000
100 IF db = 1 THEN x = x - 1: y = y + 1
120 IF db = 3 THEN x = x + 1: y = y + 1
150 IF db = 7 THEN x = x - 1: y = y ... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 04/85 *
4 REM ************************
5 REM * NEGATIVO *
6 REM ************************
7 HOME : PRINT : PRINT TAB( 11)"- CCESOFT -": INVERSE : PRINT : PRINT TAB( 12)"NEGATIVO"; SPC... |
10 :REM'SHAFT : 3 DEC 85 rev. 20 MAR 2000
20 IF EX$=""THEN EX$="exit"
30 COMMON EX$
40 CLS:KEY OFF
50 UL$=STRING$(80,205)
60 U$="######.###"
70 GOTO 110
80 :REM'
90 LOCATE C1,1:FOR U=C2 TO C3:LOCATE U,1:PRINT STRING$(80,32);:NEXT U:RETURN
100 :REM'
110 :REM'.....start
120 CLS:COLOR 11,1,4
130 COLOR 11,1:PRINT " SHAFTI... |
10 CLS
20 D$ = DATE$
30 month = VAL(LEFT$(D$, 2))
40 input "Enter in your yearly budget ",a
50 input "Enter in how much you have spent so far ",b
60 if b > a then goto 100
70 let c = a - b
80 let d = c / (12 - month)
90 print "You have $ "c" remaining so you can spend $ "d" every month for the rest of the year.... |
# BASIC Example:
100 intVal = 1
200 IF intVal-INT(1/3) * 3 <> 2 GOTO 300
210 IF intVal-INT(1/5) * 5 <> 3 GOTO 300
220 IF intVal-INT(1/7) * 7 <> 4 GOTO 300
230 PRINT "THE NUMBER IS "; intVal
240 GOTO 400
300 intVal= intVal + 1
310 GOTO 200
400 END
# NUMBER OF VARIABLES: 1
# LENGTH OF PROGRAM : 1 |
CLS
INPUT "enter number"; num
FOR i = 1 TO num
num = num / i
PRINT num
next i
|
E000R
SCR
10 GOSUB 1000
20 GOSUB 1100
30 PRINT "GOT KEY: ";K
40 IF K <> 81 THEN 20
50 END
1000 REM INIT ML CODE
1010 POKE 768,173:POKE 769,17:POKE 770,208:POKE 771,16:POKE 772,251:POKE 773,173
1020 POKE 774,16:POKE 775,208:POKE 776, 141:POKE 777,12:POKE 778,3:POKE 779,96
1030 RETURN
1100 REM GET KEYBOARD KEY
1110 CALL ... |
10 print "ON.BAS -- Test ON...GOTO Statement"
20 input "Enter a number 1-5:";n
30 on n goto 40, 60, 80, 100, 120
40 print "You entered 1"
50 goto 140
60 print "You entered 2"
70 goto 140
80 print "You entered 3"
90 goto 140
100 print "You entered 4"
110 goto 140
120 print "You entered 5"
130 goto 140
140 e... |
1 %TITLE "Sales Journal Report"
%SBTTL "AR_RPRT_SJ"
%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 of... |
10 REM THIS IS A COMMENT
20 REM THERE ARE NO BLOCK COMMENTS IN BASIC V2 =(
30 REM NOTE LINE NUMBERS, THEY CAN BE ANY NUMBER IN ANY ORDER
31 REM THEY ARE REQUIRED AT THE START OF EACH PROGRAM LINE
34 PRINT "LIKE THIS"
32 PRINT "OR LIKE THIS"
35 REM THEY ALSO FUNCTION AS LABELS TO JUMP TO
36 PRINT "JUMPING TO LINE 60" :... |
10 PRINT "HELLO, WORLD! ";
20 GOTO 10
|
10 LET a$=INKEY$
20 IF LEN(a$)>0 THEN PRINT a$;
30 GOTO 10
|
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
x = 3
y = 7
DIM a(x, y)
a(1, 1) = 1
a(1, 2) = 1
a(1, 3) = 1
a(2, 1) = 1
a(2, 2) = 1
a(2, 3) = 1
a(2, 4) = 1
a(2, 5) = 1
a(3, 1) = 1
a(3, 2) = 1
a(3, 3) = 1
a(3, 4) = 1... |
10 COLOR 1,15,1:SCREEN 2:DIM UB(424),LB(424)
20 XC=320:YC=115:XR=175:ZR=120:H=40:W=.043:XA=107
30 FOR S=1 TO 424:UB(S)=0:LB(S)=1000:NEXT
70 FOR Z=-ZR+1 TO ZR-1 STEP 5
80 XL=INT(XR*SQR(1-(Z*Z)/(ZR*ZR))+.5):X=-XL
100 Y=H*SIN(W*SQR(X*X+Z*Z)):X1=X+XC+Z
120 Y1=INT(199-(YC+Y+Z/2)+.5)
130 FOR X=-XL+1 TO XL-1
140 Y=H*S... |
10 input "graphics";g$
20 print "{clear}";
30 print g$;:if peek(214)<23 then 30
40 print:goto 10 |
100 ' VARPTR sample
110 ' value \ 2
120 DEFINT A
130 INPUT "Value";A
140 ADR=VARPTR(A)
150 AL=(A\2) MOD 256
160 AH=(A\2)\256
170 POKE ADR,AL
180 POKE ADR+1,AH
190 PRINT A
200 GOTO 130
|
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
SCREEN 7
'PRINT
'PRINT
'PRINT
'PRINT
'PRINT " GAME"
'PRINT
'PRINT " 3,5,7"
'PRINT
'PRINT
'PRINT
'COLOR 6
'PRINT " ▀ ▀ ▀"
'... |
Attribute VB_Name = "LCPR"
Private Function open_file() As String
On Error GoTo 10
Dim strFileToOpen As Variant
Dim f As Variant
Dim wb As Workbook
1:
strFileToOpen = Application.GetOpenFilename _
(Title:="Please select file to import", _
FileFilter:="Excel Files *.xls* (*.xls*),", _
Mul... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
DataEntry = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11325
DatasheetFontHeight =11
ItemSuffix =39
Right =13... |
'Press F5 to play
'If screen flickers too much while you are playing
'or if game is too fast, increase Flicker.control =" bigger,
'and smalleer, if game is too slow.
Flicker.Control = 60000
SCREEN 7 '320 X 200
RANDOMIZE TIMER
CLS
LOCATE 10, 1
PRINT "Welcome to"
PRINT
PRINT " THE TANK GAME."
PRINT
PRINT "Do... |
10 rem screen print
20 print chr$(147)
30 print tab(9);"%%%%%%%%%%%%%%%%%%%"
40 print tab(9);"%";tab(27);"%"
50 print tab(9);"%";tab(11);"demonstration";tab(27);"%"
60 print tab(9);"%";tab(11);"screen display";tab(27);"%"
70 print tab(9);"%";tab(27);"%"
80 print tab(9);"%%%%%%%%%%%%%%%%%%%" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.