text stringlengths 7 5.36M |
|---|
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSWord.Plasma
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Virus.MSWord... |
10 DIM B(7000)
20 FULLW 2
30 CLEARW 2
40 PRINT" **** PLEASE WAIT *****
50 GOSUB 770
60 CLEARW 2
70 HP=1:Z=1
80 VP=1
90 HS=4
100 VS=2
110 INPUT"HORIZONTAL SIZE";HM
120 INPUT"VERTICAL SIZE";VM
130 INPUT"BACKGROUND COLOR";C0
140 INPUT"COLOR 1";C1
150 INPUT"COLOR 2";C2
160 INPUT"CO... |
1 %TITLE "Copy Worksheet to Cycle Journal"
%SBTTL "IC_FUNC_COPYCAT"
%IDENT "V3.6a Calico"
FUNCTION LONG IC_FUNC_COPYCAT
!
! COPYRIGHT (C) 2002 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 su... |
Attribute VB_Name = "Module1"
Option Explicit
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Declare Function SetPriorityClass Lib "kernel32" (ByVal hProcess As Long, ByVal dwPriorityClass As Long) As Long
Declare Function GetPriorityClass Lib "kernel32" (ByVal hProcess As Long) As Long
... |
SUB SUBST (old$, new$, text$, start)
gap = LEN(old$)
n = LEN(text$)
IF start <= n THEN
x = INSTR(start, text$, old$)
DO WHILE x > 0
text$ = LEFT$(text$, x - 1) + new$ +_
RIGHT$(text$, n + 1 -(x + gap))
n = LEN(text$)
x = INSTR(x, text$, old$)
LO... |
OPEN "berg.in" FOR INPUT AS #1
OPEN "berg.out" FOR OUTPUT AS #2
DIM i, z AS INTEGER
DIM n AS STRING: DIM q AS STRING
z = 1
DIM mas(100) AS STRING
INPUT #1, n
FOR i = 1 TO 100 STEP 2
mas(z) = MID$(n, i, 1)
z = z + 1
NEXT i
... |
10 cls
20 let n=0:print:print:print
30 let x=int(rnd(1)*10+1)
40 let y=int(rnd(1)*10+1)
50 print x;" ";y;
60 let a$=inkey$
70 let n=n+1
80 if a$="s" and x=y then goto 110
90 if n<=100 then goto 60
100 goto 10
110 print " well done"
120 for k=1 to 1000:next k
130 goto 10
|
1 REM DIE ROLL
5 PRINT "LET 'EM ROLL"
10 IF INP(96) > 128 D=RND(6):GOTO 10
20 FOR I = 1 TO 30
30 D=RND(6):GOSUB 100
40 NEXT I
50 PRINT "ROLL=",D:GOTO 10
99 REM DISPLAY DIE VALUE
100 IF D=1 OUT 97,1:GOTO 180
110 IF D=2 OUT 97,2:GOTO 180
120 IF D=3 OUT 97,3:GOTO 180
130 IF D=4 OUT 97,6:GOTO 180
140 IF D=5 OUT 97,7:GOTO 1... |
SUB clrrite
VIEW (528, 1)-(639, 450)
CLS 1
VIEW
END SUB |
1 %TITLE "QUERY - Query General Ledger System"
%SBTTL "GL_QURY_QUERY"
%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 and ... |
10 s=33024:a=s
20 input g$
30 if g$="x" then sys s:end
35 v=0:p=128
40 fori=1to8
45 if mid$(g$,i,1)="1"then v=v or p
50 p=p/2
55 next
60 poke a,v
70 a=a+1
80 goto 20
|
REDIM msdata$(2056)
REDIM msmonster$(39, 2048)
REDIM msmonsterfile$(2048) |
rem subroutine for modulo without using a basic extension
rem https://retrocomputing.stackexchange.com/a/9439/22471
1000 rem modulo operation ([re]mainder, [d]i[v]idend, [d]ivi[s]or)
1010 re = dv - (int(dv/ds))
1020 return |
DECLARE SUB masuma ()
DECLARE SUB masumas ()
DECLARE SUB MENU5 (axz!)
DECLARE SUB ejer5 ()
DECLARE SUB ejer7 ()
DECLARE SUB ejer3 ()
DECLARE SUB ejer1 ()
DECLARE SUB marco4 ()
DECLARE SUB ejercicio1 ()
DECLARE SUB ejemplo2 ()
DECLARE SUB suma ()
DECLARE SUB producto ()
DECLARE SUB miscelanea ()
DECLARE SUB fecha ()
DEC... |
CLS
INPUT "Enter a word"; w$
FOR i = 1 TO LEN(w$)
a$ = LCASE$(MID$(w$, i, 1))
ac = ASC(a$)
IF ac >= 97 AND ac <= 122 THEN
SELECT CASE a$
CASE IS = "a", "e", "i", "o", "u"
cv = cv + 1
v$ = v$ + a$ + ","
CASE ELSE
cc = cc + 1
c$ = c$ + a$ + ","
END SELECT
END IF
NEXT i
PRINT "Vowels are: "; v$
PRINT ... |
1 REM COMPUTES FIRST BOOK OF 64 GAMES
2 REM HIGH CARD
3 REM UPDATED BY JUSTIN BALDOCK
10 REM NECESSARY INITIAL INFORMATION
20 DOLLARS=500
30 PRINT " WITH WHOM DO I HAVE THE PLEASURE"
40 PRINT " OF PLAYING HIGH CARD SLICE?"
50 INPUT NAME$
60 PRINT " HIGH CARD WINS IN THIS GAME!"
70 DIM SUIT$(4), CARD$(14):FOR I=11 TO 1... |
PRINT "e"
|
DECLARE SUB DsBox (pr$, v$, boxname$, success!, name$)
' QB-CAD version 1.58
' Made by George Jones and Stew Goss
DECLARE SUB DBox (pr$(), v(), acc(), num, boxname$, success)
DECLARE SUB STARTMOUSE ()
DECLARE SUB SHOWMOUSE ()
DECLARE SUB getmousecoord (BBB%, XXX%, YYY%)
DECLARE SUB MOUSEBOX (XXX1%, YYY1%, XXX2... |
10 REM TEST LOCKERS PROGRAM FOR SQUARE NUMBERS
12 OPTION MAX_DIM 1000
20 LET N = 1000
30 DIM L(N)
100 REM INITIALIZE LOCKERS TO OPEN
110 PRINT "INITIALIZING";N;" LOCKERS..."
130 FOR I = 1 TO N
140 FOR J = I TO N STEP I
150 LET L(J) = 1 - L(J)
160 NEXT J
180 NEXT I
200 REM PRINT LOCKER STATES
310 PRINT "OPEN LOCKERS:";
... |
OPEN "03-12.TXT" FOR INPUT AS #1
DIM AS INTEGER L1
DIM AS STRING S1,S2
INPUT #1,L1
INPUT #1,S1
S2=""
FOR I=1 TO L1
S2=MID(S1,I,1)+S2
NEXT I
DIM AS STRING B(L1,L1)
FOR I=1 TO L1
FOR J=1 TO L1
IF MID(S1,I,1)=MID(S2,J,1) THEN
B(I,J)=B(I-1,J-1)+MID(S1,I,1)
ELSE
IF LEN(B(I-1,J... |
':4002C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021436587AE
dim code_block(68) as integer
dim input_str(136) as string
dim temp_str(2) as string
dim y as integer
function i2h (long as integer) as string
dim temp_str(24) as string
tem... |
10 CLEAR 24831
20 RANDOMIZE USR 15619:REM:LOAD "cc2020in" CODE 24832
30 RANDOMIZE USR 24832
|
Attribute VB_Name = "MOD_CommandLine"
Option Explicit
Public Sub ReadCommandLine()
10 On Error GoTo ErrHandler
'*****NOTE: Sizes should always be passed in twips, then converted if required
Dim strDefaultBase As String
Dim strDefaultSetup As String
Dim strDefaultAdsrv As String
Dim strDefaultSt... |
Attribute VB_Name = "Module1"
Sub task_1()
Dim a As Integer, b As Integer, c As Integer, d As Integer
a = InputBox("¬ведите a")
b = InputBox("¬ведите b")
1: c = InputBox("¬ведите c")
d = InputBox("¬ведите d")
If c + d = 0 Then
MsgBox "ƒеление на ноль, повторите ввод"
GoTo 1
End If
MsgBox (a + b) / (c + d)
... |
CLS
INPUT "Product = ", product
IF product > 99 THEN
price = product * 5
ELSE
IF product > 49 THEN
price = product * 7
ELSE
price = product * 10
END IF
END IF
... |
REM @english
REM I/O CONTROL WITH KEYBOARD (4)
REM
REM This example will run an endless loop (''DO...LOOP'') where the keyboard will be
REM scanned for pressing of any shift key. If this happens, the scan shift value will
REM be printed out.
REM
REM @italian
REM CONTROLLI DI I/O CON LA TASTIERA (4)
REM
REM Qu... |
GLOBAL hHandle AS HWND
GLOBAL hClass AS HWND
GLOBAL hText AS HWND
GLOBAL hID AS HWND
GLOBAL hStyle AS HWND
GLOBAL hExStyle AS HWND
GLOBAL hRect AS HWND
GLOBAL hCRect AS HWND
GLOBAL hRGB AS HWND
GLOBAL hXY AS HWND
GLOBAL hPicker AS HWND
GLOBAL cSelected
GLOBAL Form1 AS HWND
GLOBAL... |
10 PRINT "SAVING..."
20 OPEN 1,1,1,"TEST.DAT"
30 FOR I = 1 TO 10
40 A = RND(0)
50 PRINT A
60 PRINT#1, A
70 NEXT I
80 CLOSE 1
90 PRINT "LOADING..."
100 OPEN 1,1,0,"TEST.DAT"
110 INPUT#1, I
120 IF ST <> 0 GOTO 150
130 PRINT I
140 GOTO 110
150 CLOSE 1
|
10 PROC MAIN();
20 BEGIN
30 PROC PRIME(N);
35 {PRINT N IF PRIME}
40 BEGIN D=1;
60 TRY:D=D+1;E=N;
65 IF D<N-1 THEN
68 BEGIN
70 TEST:E=E-D;
75 IF E<>0 THEN
80 IF E<128 THEN GOTO TEST
85 ELSE GOTO TRY
88 END
90 ELSE WRHEX(N)
110 END;
115 {MAIN PROGRAM}
... |
'Stores 12 months of salaries and month names,
'Printing selected ones at the user's request.
'Jason Chalom
DIM sal(12) 'reserve enough elements for the 12 slalaries
DIM months$(12) 'and the 12 month names
'Fill up the month names
FOR ctr = 1 TO 12
READ months$(ctr) 'save the... |
CLS
DIM noms$(1 TO 8): DIM scores(1 TO 8)
pts = 0
INPUT "Entrez votre nom (8 caractŠres maxi.) : "; joueur$
joueur$ = UCASE$(joueur$)
joueur$ = LEFT$(joueur$, 8)
IF joueur$ = "INIT" THEN GOTO initfichier
OPEN "idscores.dat" FOR RANDOM AS #1
FOR i = 9 TO 16
GET #1, i, score
IF pts >= score THEN EXIT FOR
... |
10 REM **** Rudimentary Mandelbrot Set Program v1.0 ****
20 REM **** by Geoff Pack. v1.0: 15 Nov 1996 ****
30 REM **** Created with MS-DOS QBasic Version 1.0 ****
40 REM **** Run initially on 286 monochrome laptop ****
50 REM **** Reference: Gleik, 1987 p.227, 231-232. ****
100 REM graphic mode 1:... |
DIM mot$(9), ordre(600)
nsujet = 12
'PRINT "Nombre de mots? (max= "; INT(32767 / 9); ") ",
'INPUT Nbm
Nbm = 6
mots = 9
DATA a/b/
DATA e/f/g/
DATA k/l/m/n/
DATA h/i/j/
DATA c/d/
DATA o/p/q/r/
DATA s/t/
DATA u/v/w/
DATA x/y/z/@/
FOR i = 1 TO mots
READ mot$(i)
NEXT i
N = 144'Nb de mots... |
'********* KEYSUBST.BAS - shows how to substitute "modifier" keys in a TSR
'Copyright (c) 1993 Crescent Software
'With a special thanks for the core code submitted by Matt Hart
'This demo substitutes the CapsLock and Ctrl keys. Modify to suit.
' bc keysubst /o;
' link /far/packc/nod/noe _
' keysubst _noread _noer... |
1 !
!++
! Description:
!
! Cchange part types listed in text file from MP to PP
!
! History:
!
! 06/11/2002 - Kevin Handy
! Original version
!
!--
OPTION SIZE = (INTEGER LONG, REAL GFLOAT)
%INCLUDE "SOURCE:[PD.OPEN]PD_PRODUCT.HB"
MAP (PD_PRODUCT) PD_PRODUCT_CDD PD_PRODUCT
100 !
! Open up product mast... |
10 PRINT "X","ABS(X)","SQR(ABS(X))","INT(X)","SGN(X)"
20 READ X
30 PRINT X,ABS(X),SQR(ABS(X)),INT(X),SGN(X)
40 DATA -899913.,-35.2,-.032
50 DATA 0,.032,23.412,8391
60 GOTO 20
70 END
|
10 PRINT CHR$(4) "BLOAD DUMPROM"
20 PRINT "Laser 128 ROM Dumper Tool"
30 PRINT
40 PRINT "For new model, make sure slot 5 and 7"
50 PRINT "are set to INTERNAL!"
60 PRINT
70 PRINT "Choose model:"
80 PRINT " (1) Old model, black on silver badge"
90 PRINT " (2) New model, LASER in red"
100 PRINT " (Q) Quit"
110 PRINT
120 P... |
REM File: .bas
REM Data: 22-01-2017
REM + 1 EURO
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
SCREEN 12
FOR i = 1 TO 10000
RANDOMIZE TIMER
x = INT(RND * 640) + 1
y = INT(RND * 480) + 1
R = INT(RND * 300) + 1
C = INT(RND * 16) + 1
CIRCLE (x, ... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8640
DatasheetFontHeight =11
ItemSuffix =7
Left =10680
Top =1650
Right =21345
Bottom =11... |
'**** Inter1.Bas - Demonstration of an interlude
'Copyright 1990, Brian C. Giedt
DEFINT A-Z
'$INCLUDE: 'GWDecl.BAS'
DECLARE SUB FillPoly (A%, B%, c%, d%, e%, f%, g%, h%, Colr%)
DECLARE SUB Take4 (XCenter%, YCenter%, Size%, Delay%, Segue$)
'$INCLUDE: 'Common.GW'
SUB Interlude1 (Text$) STATIC
XPos = GPDat%(43)... |
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
' <<Press Shift+F5>>
... |
Attribute VB_Name = "mdlTrans"
'=============================ISS2PCK AOG(QT,SO) ExVat ======================================
'conERP =ExcludeVAT ,path\PCK61
'conERP2 =ExcludeVAT ,path\WAT61
'24/10/2018 baseline version
'29/10/2018 change update express.quotation_no to iss.DocNumber
'07/11/2018 combine aog_quot... |
10 REM ==== DAYALI POLIGON HESABI ====
20 PRINT CHR$(147):TL=0:AA=0
30 PRINT TAB(10)|"▄▄":DUP("▄▄",25)
40 PRINT TAB(10):"▄ DAYALI POLIGON HESABI ▄
50 PRINT TAB(10):DUP("""",250
60 READ IS$,AG,P:P1=P+1:P2=P+2:P3=P+3
70 DIM N$(P3),A%(P1),S(P2),L(P1),DY(P1),DX(P1)
80 DIM EY(P1),EX%(P1),Y(P3),X(P3),Q(P1)
90 READ ... |
CLS
OPEN "bus.in" FOR INPUT AS #1
OPEN "bus.out" FOR OUTPUT AS #2
INPUT #1, n
DIM c(n)
FOR i = 1 TO n
INPUT #1, c(i)
NEXT i
INPUT #1, a, b
s = a
FOR i = 1 TO n
s = s + c(i)
NEXT i
s = s - b
PRINT #2, LTRIM$(STR$(s))
CLOSE #1
CLOSE #2
END
|
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowEdits = NotDefault
AllowDesignChanges = No... |
dbMemo "SQL" ="SELECT tlu_LP_Soil_Surface.Surface_Code AS Master_Plant_Code, tlu_LP_Soil_Surfa"
"ce.Surface_Code AS LU_Code, (tlu_LP_Soil_Surface.Surface_Code & \" - \" & tlu_L"
"P_Soil_Surface.Surface_Description) AS Utah_Species, 1 as Sort_Seq\015\012FROM t"
"lu_LP_Soil_Surface WHERE tlu_LP_Soil_Surfa... |
10 FOR A = 0! TO 2! * 3.1415926# STEP .1
20 PRINT TAB(40! + 30! * SIN(A)); "***"
25 FOR F = 1 TO 2000
26 NEXT F
30 NEXT A
40 END
|
Attribute VB_Name = "AppSupport"
Option Explicit
Public Const FORMAT_UNITS_ENGLISH = 0
Public Const FORMAT_UNITS_METRIC = 1
Public Enum eFormatUnits
huEnglish = FORMAT_UNITS_ENGLISH
huMetric = FORMAT_UNITS_METRIC
End Enum
Public aryLocations() As String
Public Type AdtInfo
'ID ... |
10 'Basic 16 Key Demo Program
20 CONFIG PIO &100,0,1,1,1,0
30 CONFIG KEYPAD$ &102,0,8
40 ON KEYPAD$ GOSUB ..Key_interrupt
50 GOTO 50
60 ..Key_interrupt
70 PRINT KEYPAD$(0)
80 RETURN KEYPAD$
|
0 CLEAR4000:CLS:GOTO15
1 L(CL,RL)=(T*(3+RL))+R:RETURN
2 L(CL,RL)=(T*11)+R:RETURN
15 DIMDK$(52),PRE(52),SU$(4),CA$(13),CR(4,2),CL$(7,19,2),ND$(52)
20 DIMACES$(4),L(7,19),PL,RL,EF,CL,MC,TM,AC,L,T1,NC,FW,FP,SU,BS,TW,FE,T,C$,IN$,A$:GOSUB8000
30 PRINT"KLONDIKE SOLITAIRE":PRINT:PRINT "DO YOU NEED INSTRUCTIONS? ";
35 A$=INKEY... |
100 rem PacBas - PacMan clone in C64 Basic!
110 rem PacBas01.bas working path planning routine - time 2:40
120 rem PacBas01-1.bas individual arrays - time 2:44
130 rem PacBas01-2.bas 2 diminsions array for ghosts - time 2:57
140 rem PacBas01-3.bas no intermediate var for moving - time 3:41
150 rem r... |
CLS
SCREEN 9
'DRAW
LINE(0,0)-(639,340),15,B
RANDOMIZE TIMER
FOR K=1 TO 22
X%=INT(RND * 80)
Y%=INT(RND * 340)
Z%=INT(RND * 30)
J%=INT(RND * 15)
G%=RND * 2
M%=RND * 2
FOR IU=1 TO Z%
CIRCLE(550+X%,Y%),IU,J%,,M%,G%
NEXT IU
NEXT K
'DRAW
COLOR 4... |
ConfigFile$ = "config.txt"
ConfigBak$ = "config.bak"
WriteConfigSetting "'[COLOR SETTING]", "Background", "_RGB32(255,0,255)"
DisplayConfigFile
WriteConfigSetting "'[COLOR SETTING]", "TextColor", "_RGB32(255,0,0)"
DisplayConfigFile
WriteConfigSetting "'[COLOR SETTING]", "Background", "_RGB32(255,0,0) 'REDONE"
Display... |
Attribute VB_Name = "FarmPlan"
Sub PrintFarmPlan(Farm As Worksheet)
'Declare Variables
Dim WordApp As Word.Application
Dim wDoc As Word.Document
Dim ws As Worksheet
Dim ObjShape As InlineShape
Dim recList
Dim rec As Variant
Dim i As Integer
Dim objCC As ContentControl
Di... |
'-------------------------------------------------------
'*** PROGRAM: NATO Phonetic Alphabet/Q & A test
' REFERENCE: https://en.wikipedia.org/wiki/NATO_phonetic_alphabet
' LANGUAGE: QBASIC 64
' COMPUTER: Home based PC
' CREATED: 260816 13:47 PM GMT
' UPDATED: 260816 13:47 PM GMT
' COPYRIGHT: (c)2016, Pa... |
100 IF INKEY$<>"" GOTO 100
110 A$=INKEY$:PRINT FRE(0):IF A$="" GOTO 110
120 DIM A$(10)
130 A$(2)="JJJ"
140 PRINT A$(2),HEX$(VARPTR(A$(2)))
150 DIM B$(30)
160 B$(3)="NNN"
170 ERASE A$
180 PRINT B$(3),HEX$(VARPTR(B$(3)))
190 PRINT FRE(0)
200 PRINT B$(3),HEX$(VARPTR(B$(3)))
|
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p.
10 'Structure of a Binary Tree
20 'Name: TREE2
30 SCREEN 12, 0, 0, 0: CLS
40 WINDOW (-2, -.5)-(2, 2.5)
45 COLOR 15: LOCATE 1, 1: PRINT "Binary tree"
47 COLOR 2
50 LINE (0, 0)-(0, 1)
60 FOR k = 1 TO 7
65 h = 2 ^ (-k + 1)
70 FOR l = 1 TO 2... |
INPUT "COMMAND : "; COMMAND$
IF COMMAND$="STOP" THEN STOP
CREATE "$$$.SUB" RECL 128 AS 1
FORMAT$="!&!!"
PRINT USING FORMAT$, #1,2; CHR$(LEN(COMMAND$)), COMMAND$, CHR$(0), "$"
PRINT USING FORMAT$, #1,1; CHR$(9), "CRUN CHAIN", CHR$(0), "$"
CLOSE 1
STOP
END
... |
5 REM *** SIREN EFFECT ***
10 FOR M = 0 TO 24 : POKE 54272 + M,0 : NEXT
20 M = 54272
30 POKE M + 24,6
40 POKE M + 5,136: POKE M + 6,240
50 FOR X = 4 TO 255 STEP 1
60 POKEM+1,X
70 POKE M+ 4,33
80 FORK = 1TO6:NEXTK:NEXTX
90 FOR Z = 255 TO 6 STEP - 1
100 POKEM+1,Z
110 FOR J = 1 TO 4 : NEXT J : NEXT Z... |
DECLARE SUB InitSourceHeader ()
'****************************************************************************
' $SubTitle:'Source Code Reading/Parsing and Listing Module'
' QMAPD.BAS - Source Code Reading and Parsing Module for XREFD.BAS
' by Don Malin
' (c) 1989 - 1991 Crescent Software, Inc.
'
' The primary rout... |
' Copyright (c) 1988, 1989, 1990, 1993 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
DECLARE SUB USERFUNC (X(), F)
SUB NUMGRAD1 (N, X(), FX, GX()) STATIC
' Numerical gradient subroutine
' Input
' N = number of variables
' X() = vector of independent variables
' Output
' FX = scalar... |
CLS
TYPE EMPLOYEETYPE
FIRSTNAME AS STRING * 30
LASTNAME AS STRING * 30
AGE AS INTEGER
SALARY AS INTEGER
END TYPE
DIM EMPLOYEE AS EMPLOYEETYPE
PRINT "1) CREATE NEW RECODSET"
PRINT "2) VIEW EXISTING RECORDSET"
INPUT "WHICH OPTION ?"; SELECTION%
IF SELECTION% = 1 THEN INPUT "HOW MANY EMPLOYEES ARE IN THE COMPA... |
1 REM Program: test.bas
2 REM About: Cycle screen colour in BASIC
3 REM
10 LET c = 0
20 POKE 53281, C
30 C = C + 1 AND 255
40 GOTO 20
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
AllowUpdating =4
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior ... |
10 OPEN "COM2:9600,N,8,1,CS0,DS0" FOR RANDOM AS #1
15 PRINT "C'est parti !"
20 WHILE 1
30 LINE INPUT #1, A$
40 PRINT A$
50 WEND
|
Check BC9113DE
Auto 1
10 POKE USR "T", BIN 00000000
20 POKE USR "T"+1,BIN 00101010
30 POKE USR "T"+2,BIN 01010101
40 POKE USR "T"+3,BIN 00101010
50 POKE USR "T"+4,BIN 01011100
60 POKE USR "T"+5,BIN 00101100
70 POKE USR "T"+6,BIN 01010011
80 POKE USR "T"+7,BIN 00100011
110 POKE USR "E", BIN 00000000
120 POKE USR "E"... |
10 print"{up} testing... ";
100 *-
101 @1800 lda #"{clr}"
102 @1802 ora #%11010110
103 @* ldx #$b2
104 @* ldy #100
200 =1800 a99309d6a2b2a064
999 print"{blue}[ok]{black}"
1000 print "* symbolic assembly"
1005 print " {cyan}loading...{black}"
1010 load"symboltest.prg",8
|
' Test initial values for undeclared variables.
PRINT a; "'"; b$; "'"
PRINT f1
FUNCTION f1
f1 = x
END FUNCTION
' Test declaring local and global variables via DIM
DIM c AS STRING
DIM SHARED d AS STRING
PRINT "'"; c; "' '"; d; "'"
c = "foo"
d = "hello"
LET z = f2
FUNCTION f2
PRINT "'"; c; "' '"; d; "'"
END FUNCTION... |
WIDTH LPRINT 255
e$ = CHR$(27)
LPRINT e$; "D"; CHR$(27); CHR$(55); CHR$(0);
LPRINT e$; "3"; CHR$(37);
w1$ = e$ + "W1"
w0$ = e$ + "W0"
a$(0) = "Doc"
a$(1) = "Projet"
a$(2) = "Utilisation"
a$(3) = "Doc. annexe"
a$(4) = ""
a$(5) = "Date"
ta(0) = 38
ta(1) = 38
ta(2) = 38
ta(3) = 38
ta(4) = 38
ta(5) = 38
FOR i = 1 TO... |
atom=H
contraction shell=P num_primitives=1 num_coefficients=1
1.000000 1.000000
atom=He
contraction shell=P num_primitives=1 num_coefficients=1
1.000000 1.000000
atom=Li
contraction shell=D num_primitives=1 num_coefficients=1
0.200000 1.000000
atom=Be
contraction shell=D num_primitives=1 num_coefficients=1
0.400000 1.... |
1 %TITLE "Equipment Ledger Description Maintenance"
%SBTTL "EL_MAST_EQUIPMENT"
%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 a... |
Operation =1
Option =0
Begin InputTables
Name ="tbl_Strata"
Name ="tbl_Sites"
Name ="qsub_Surveyed_sites"
Name ="tbl_Schedule"
End
Begin OutputColumns
Expression ="tbl_Schedule.Calendar_year"
Expression ="tbl_Sites.Park_code"
Alias ="Stratum"
Expression ="Right([Stratum_name],Len([Strat... |
'
' vi: ft=basic
'
option explicit
public metadata as msxml2.DOMDocument
sub class_initialize() ' {
set metadata = new msxml2.DOMDocument
end sub ' }
sub init(fileName_or_URL as string) ' {
metadata.async = false
metadata.validateOnParse = true
metadata.resolveExternals = ... |
' PLOTMAT.BAS version of Nov. 15 1989
'Plot matrix, first col. = x values,
' other columns are y values. Total i x j of matrix <= 2500
DIM vmat(2500)
DIM css$(39)
DIM kolors(6)
kolors(0) = 0
kolors(1) = 12
kolors(2) = 3
kolors(3) = 9
kolors(4) = 13
kolors(5) = 10
kolors(6) = 6
'.....................set-up char. codes
c... |
0 POKE55,255:POKE56,47:PRINT"{clear}":POKE53280,2:POKE53281,0
1 V=53248:POKEV+22,PEEK(V+22) OR 16:POKEV+24,28
2 POKEV+34,7:POKEV+35,5
3 FORI=12288TO12471:READQ:POKEI,Q:NEXT
4 FORI=12544TO12551:POKEI,0:NEXT
5 FORI=12672TO12751:READQ:POKEI,Q:NEXT
6 POKE54296,10:POKE54276,0:POKE54276,33:POKE54278,240
7 POKE54273,0:POKE542... |
Attribute VB_Name = "Tools_Write_xml_files"
Function cell_contents()
s = Selection
T = InStr(1, s, "…")
If T = 0 Then T = InStr(5, s, "..")
If T = 0 Then T = Len(s)
cell_contents = Mid(UCase(s), 1, T - 1)
End Function
Sub RPSTL_table_tagger()
Locate
With Application.FileDialog(msoFileDialog... |
!------------------------------------------------------------------------------
!- Pentominos 0.20
!- Reformatted for easier modification & viewing
!-
!- Originally:
!- Pentominos for commodore computers
!- by Jim Butterfield, Compute! May 1984
!-
!- Copied and pasted into CBM Prg Studio
!-... |
'CLS = Bildschirm leeren
CLS
'INPUT = Eingabe
INPUT "Wie heisst du"; Name$
'PRINT = Auf den Bildschirm schreiben
'Abgetrennt durch ; (Semikolon)
PRINT "Hallo "; Name$
INPUT "Wie alt bist du"; Alter
Tage = Alter * 365
PRINT "Dann lebst du ja schon"; Tage; "Tage auf der Welt."
INPUT "Bist du m„nnlic... |
COLOR 4
CLS
FOR t = 1 TO 10000: NEXT t
CLS
LOCATE 9, 30
PRINT "SHERLOCK HOLMES"
LOCATE 11, 20
PRINT "el detective mas grande del mundo"
FOR t = 1 TO 10000: NEXT t
CLS
LOCATE 9, 30
PRINT " P R E S E N T A"
FOR t = 1 TO 10000: NEXT t
LOCATE 9, 30
PRINT "SHERLOCK HOLMES "
LOCATE 11, 30
PRINT " IN AMERICA... |
10 rem integer to fp
20 code = 49152
30 for loop = 0 to 17
40 read byte
50 poke loop + code,byte
60 next loop
70 rem
80 rem m/c data
90 data 169,1 : rem $a9,$01 - lda #1 ; high byte into a
100 data 160,35 : rem $a0,$23 - ldy #$23 ; low byte into y
11... |
#COMPILE EXE
#DIM ALL
#INCLUDE "DoubleQueueUsingArray.inc"
GLOBAL gSeconds, gMinutes AS LONG
FUNCTION PBMAIN () AS LONG
LOCAL samples, x, y, sampleCnt, decSampleCnt, threeMinutesPassed AS INTEGER
LOCAL temp(), rms() AS INTEGER
LOCAL rmsValue, rmsTotal, rmsTotalOld, rmsAvg, runningRmsAvg, newRunningAvg, t... |
100 REM TEST UPPER MEMORY
110 REM UPPER MEMORY IS 4KB FROM $E000-$EFFF (57344-61439 DEC)
120 S=57344
130 E=61439
200 REM FILL MEMORY
210 P=0
220 FOR A=S TO E
230 POKE A,P
240 P=P+1
250 P=P AND 255
260 NEXT A
300 REM VERIFY FILLED MEMORY
310 X=0
320 FOR A=S TO E
330 P=PEEK(A)
340 IF P<>X GOTO 500
350 X=... |
1 %TITLE "Fixed Asset by General Ledger Account"
%SBTTL "AD_RPRT_FIXACCT"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1986 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
! ... |
' Desktop.inf file activator by Michael Wensley
REM $option y
LIBRARY "gemaes","gemdos","bios"
DEFINT a-z
DECLARE FUNCTION match(BYVAL file$,BYVAL wild$)
c$=COMMAND$
' extract target filename from the path
filename$=MID$(c$,RINSTR(c$,"\")+1)
' the shell buffer contains a RAM copy of DESKTOP.INF/NEWDESK.... |
Attribute VB_Name = "FINAN_ASSET_MOMENTS_CORREL_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.
Function ASSET_PRICE_VOLATILITY_CORRELATION_FUNC(... |
10 led brightness 1
20 led fill rgb(0,0,255)
30 for i = 0 to 50
40 led brightness i
50 sleep 20
60 next i
70 sleep 50
80 for c = 50 to 0 step -1
90 led brightness c
100 sleep 20
110 next c
120 led fill rgb(0,0,0)
130 sleep 250
140 goto 10
150 rem
160 rem "bluepulse.bas" by @dale_nunns and @Hypn... |
100 REM COMPUTE PRIME NUMBERS USING SIEVE OF ERATOSTHENES
105 LET L = 1000
110 DIM N(L)
120 FOR I = 1 TO L-1
130 LET N(I) = I
140 NEXT I
150 LET P = 2
160 PRINT P; " ";
170 FOR I = P TO L-1 STEP P
180 LET N(I) = 0
190 NEXT I
200 LET P = P + 1
210 IF P = L THEN 230
220 IF N(P) <> 0 THEN 160 ELSE 200
230 E... |
@PROTOP
CLS
ACLS
CLEAR
COLOR 0
INPUT "Insert a EAN-8: "; UPCA$
CLS
ACLS
IF LEN(UPCA$)<8 THEN STOP
IF LEN(UPCA$)>8 THEN STOP
COLOR 1
UPCA_SIZE=LEN(UPCA$)
STARTI=0
DIM UPC_ARRAY$(8)
DIM UPC_ARRAY(8)
@LOOP1
UPC_ARRAY$(STARTI)=MID$(UPCA$,STARTI,1)
UPC_ARRAY(STARTI)=VAL(MID$(UPCA$,STARTI,1))
STARTI=STARTI+1
IF STARTI==8 GOT... |
210 PRINT "THIS IS A GAME OF GUESSING,"
220 PRINT "FOR INSTRUCTIONS, TYPE '1', ELSE TYPE '0'";
230 INPUT E
240 IF E=0 THEN 360
250 PRINT
260 PRINT "PLEASE TAKE A PIECE OF PAPER AND WRITE DOWN"
270 PRINT "THE DIGITS '0', '1', OR '2' THIRTY TIMES AT RANDOM,"
280 PRINT "ARRANGE THEM IN THREE LINES OF TEN DIGITS."
290 PRIN... |
CLS
FOR x = 1 TO 255
PRINT RIGHT$(" " + STR$(x) + " ", 5);
IF x <> 12 AND x <> 29 AND x <> 30 AND x <> 9 AND x <> 31 AND x <> 11 AND x <> 10 AND x <> 7 THEN
PRINT CHR$(x);
ELSE
PRINT " ";
END IF
NEXT x
|
10 REM -- mozaika symetricka podle osy x a y
20 REM -- (c) 2017
30 REM -- Martin Pokorny
40 BORDER 0: PAPER 0: CLS: RANDOMIZE
50 GO SUB 8000
60 LET cx=15: LET cy=9
100 LET dx=RND*15: LET dy=RND*9
110 LET b=INT(RND+0.5): LET k=(INT(RND+0.4))*5
120 REM .. PRINT AT 0,0;b; AT 1,0;k
130 PRINT INK k; BRIGHT b; AT cy-dy,cx-dx... |
CLS
OPEN "2010r3.ans" FOR OUTPUT AS #2
DIM A(3, 4), B(4, 3)
FOR X = 1 TO 3
FOR Y = 1 TO 4
A(X, Y) = X - Y
NEXT Y, X
FOR X = 4 TO 1 STEP -1
FOR Y = 1 TO 3
B(X, Y) = A(Y, X)
NEXT Y, X
PRINT #2, B(3, 2)
END
|
1 %TITLE "Payroll New York SDI Report"
%SBTTL "PR_RPRT_NY_SDI"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1989 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... |
1 PRINT TAB(34);"KING"
2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
3 PRINT:PRINT:PRINT
4 PRINT "DO YOU WANT INSTRUCTIONS";
5 INPUT Z$
6 N5=8
10 IF LEFT$(Z$,1)="N" THEN 47
11 IF Z$="AGAIN" THEN 1960
12 PRINT:PRINT:PRINT
20 PRINT "CONGRATULATIONS! YOU'VE JUST BEEN ELECTED PREMIER OF SETATS"
22 ... |
SCREEN 13
COLOR 5
PRINT "HELLO ";
COLOR 6
PRINT " WORLD!"
COLOR 9
PRINT "0123456789012345678901234567890123456789"
PRINT "01234567890123456789012345678901234567891"
PRINT CHR$(9)+"A"+CHR$(9)+"0123456"+CHR$(9)+"XYZ"
COLOR 7
LOCATE 9,10: PRINT "LOCATED"
LOCATE 10
FOR I = 1 TO 15
COLOR I: PRINT I;
NEXT I
... |
1 'Example of ERL function
10 ON ERROR GOTO 1000:'Error handler
15 X = 0
20 A = 5 / X:'Generate divide by zero error
40 PRINT "X = ";X,"5 / X = ";A
50 PRINT "Program ends"
60 END
1000 PRINT "Divide by zero error at line ";ERL
1010 PRINT "Error code is ";ERR
1020 X = X+ .1:'Adjust X a little bit to correct problem
1030 ... |
DECLARE SUB ka ()
DECLARE SUB aY ()
DECLARE SUB aX ()
DECLARE SUB aA ()
DECLARE SUB aB ()
DECLARE SUB aC ()
DECLARE SUB aD ()
DECLARE SUB aE ()
DECLARE SUB aF ()
DECLARE SUB aG ()
DECLARE SUB aH ()
DECLARE SUB aI ()
DECLARE SUB aJ ()
DECLARE SUB aK ()
DECLARE SUB aL ()
DECLARE SUB aM ()
DECLARE SUB aN ()
DECLARE SUB aO... |
Attribute VB_Name = "MxDao_Fea_Lim_LnkImp_SpSamp"
Option Compare Text
Option Explicit
Const CMod$ = "MxDao_Fea_LnkImp_SpSamp."
Function LnkImpSpSamp() As String()
Erase XX
X "*Spec :LnkImp MB52 *Inp- FbTbl- FxTbl- Tbl.Where- *Stru MusHasRecTbl"
X " Inp::(Inpn,Ffn)+"
X " FbTbl::(FbTbn,Stru..)*"
X " FxTbl::(FxTbn,?Inpnw... |
CLS
LET v = 0
LET v1 = 0
LET o = 10
LET p = 35
LET he = 10000
'FOR i = 8 TO 17: LOCATE i, 15: PRINT "³": NEXT i
'FOR i = 15 TO 65: LOCATE 7, i: PRINT "Ä": NEXT i
'FOR i = 8 TO 17: LOCATE i, 65: PRINT "³": NEXT i
'FOR i = 15 TO 65: LOCATE 18, i: PRINT "Ä": NEXT i
'FOR i = 15 TO 65: LOCATE 13, i: PRINT "Ä": NEX... |
DIM AS INTEGER A(5),B(5),M,K,S1,S2
FOR I = 1 TO 5: READ A(I): B(I) = 0: NEXT I
DATA 1,3,9,27,81
INPUT "M="; M
F = 0
DO WHILE B(0) = 0
K = 5
DO WHILE B(K) = 2
B(K) = 0
K = K - 1
LOOP
B(K) = B(K) + 1
S1 = 0: S2 = 0
FOR I = 1 TO 5
IF B(I) = 1 THEN S1 = S1 + A(I)
IF B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.