text stringlengths 7 5.36M |
|---|
main:
readadc C.4, b1 ` Read the value of the LDR and convert it from analog to digital value
if pinC.3 = 1 then ` Check if the push button is down and if it is turn the LEDs on, with the pause time being dependent on the LDR
high C.0
pause b1
low C.0
high C.1
pause b1
low C.1
high C.2
pause b1
low... |
'Benjamin Rayner
'Feb 2, 2018
'This program calulcates total price of gas per trip
'DIM sngMiles As String
'DIM sngGallon As String
'DIM sngPrice As String
'DIM sngTotalGallons
'DIM sngTotalPrice
CLS
MAINWIN 90 45
'User Input
PRINT "What is the total miles that will be traveled during the trip? (There and back)"
IN... |
10 COLOR 15,1,1:SCREEN2
20 LINE(0,0)-(7,7),,BF
25 FOR I=0 TO 7
30 VPOKE BASE(5*2+2)+(256*2+0)*8+I,VPEEK(BASE(5*2+2)+(256*0+0)*8+I):'Копирование изображения
35 VPOKE BASE(5*2+1)+(256*2+0)*8+I,VPEEK(BASE(5*2+1)+(256*0+0)*8+I):'Копирования цвета
40 NEXT
50 GOTO 50
|
PRINT "input yearly interest rate"
INPUT i
PRINT "input amount of money owed"
INPUT a
10 t = (i / 12) * a
PRINT "the interest for this month is"; t
PRINT "the amount owed is"; a + t
pa = a + t
PRINT "what is the payment on the amount owed?"
INPUT p
a = pa - p
PRINT "the amount owed is now"; a
GOTO 10
|
5 CLEAR:CLEAR2000
10 GOTO 13610
110 GOSUB15810
210 GOSUB11810
310 FORV=1TO4
410 PRINT@A,A$(C+2);:C=-C
510 IF E<>0 THEN PRINT@E,E$(V);
610 IF F<>0 THEN PRINT@F,F$(V);
710 IF PW>100 THEN PW=100 ELSE IF PW <0 THEN GOSUB18510
810 PRINT@20,"POWER"PW"% ";:PRINT@0,K$;
910 SCREEN 0,SC(V)
1010 I$=INKEY$
1110 IFI$<>""THEN GOSUB4... |
' Copyright (c) 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
DECLARE SUB DERIVATIVE (T, Y(), YDOT())
SUB RK4 (NEQ, TIME, DT, Y()) STATIC
' Fourth order Runge-Kutta integration subroutine
' Input
' NEQ = number of equations
' TIME = simulation time
' DT = integration step size
' ... |
10 REM Commodore 64 Basic
11 REM PONYLIST
12 REM Because I've never tried Basic (Should work on MZ700 too- maybe)
13 REM Version without episodes or weighted list. (Find out more about extra data for each target machine)
30 ? "Enter ammount seasons"
35 input a1%
38 ? "Enter number of episodes in this season: "
40 for ... |
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
DividingLines = NotDefault
ScrollBars =2
PictureAlignment =5
PictureSizeMode =1
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11505
DatasheetFontHeight =10
ItemSuffix =146
Top =885
Right =1... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
TabularCharSet =178
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
... |
10 print"{clear}"
20 poke 2040,13
30 for i=0 to 62:poke 832+i,129:next
40 v=53248
50 poke v+21,1
60 poke v+39,1
70 poke v+1,100
80 for j=0 to 347
90 hx=int(j/256):lx=j-256*hx
100 poke v,lx:poke v+16,hx:next
|
1 %TITLE "Document a Menu"
%SBTTL "LIB_COMPRESS"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center, Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inclusion of the above cop... |
IF usercommand$(runcommands) = "start" THEN
DO
FOR runcommands2 = 1 TO usercommands
IF usercommand$(runcommands2) = "up" THEN
DO
FOR runcommands3 = 1 TO usercommands
IF usercommand$(runcommands2) = "launch" OR usercommand$(runcommands2)... |
Attribute VB_Name = "tela2"
Option Explicit
Option Base 0
'
' This module contains several routines for capturing windows into a
' picture. All routines have palette support.
'
' CreateBitmapPicture - Creates a picture object from a bitmap and palette.
' CaptureWindow - Captures any window given a wi... |
DIM hDLL AS HMODULE
DIM plug AS FARPROC
DIM iVal
DIM F$
F$ = FINDFIRST$("*.DLL")
WHILE LEN(F$) > 0
hDLL = LoadLibrary (F$)
plug = GetProcAddress(hDLL, "_plug")
IF plug <> NULL THEN
PRINT "Calling the DLL ", F$
iVal = plug(5, 2)
PRINT iVal
END IF
FreeLibrary(hDLL)
F$ ... |
CLS
n = 12
INPUT "String you wish to search"; f$
DIM a$(n)
a$(1) = "The largest ocean in the world is the Pacific Ocean"
a$(2) = "There a 7 oceans in the world"
a$(3) = "There are five continents in the world"
a$(4) = "Singapore's National Day - 9th of August"
a$(5) = "Cleopatra was the queen of Egypt at the ti... |
#PBFORMS CREATED V2.01
'------------------------------------------------------------------------------
' The first line in this file is a PB/Forms metastatement.
' It should ALWAYS be the first line of the file. Other
' PB/Forms metastatements are placed at the beginning and
' end of "Named Blocks" of code that should ... |
20 rem@ {pound}word #:{pound}fastfor:{pound}shortif
30 rem@ {pound}byte x,so,j,i2,ie,count,lv,sl
40 poke650,128
500 so=15:br=10:b2=br-1
900 ap=1023:gosub5750
950 gosub5700
1000 jo=56320
1005 gosub12000
1010 gosub10000
1020 gosub5100:rem berechnen
1030 gosub5200:rem testen
1032 gosub8000:rem tastatur
1035 pokeap,32:remp... |
DIM STAR$(24)
RANDOMIZE TIMER
LET LR% = 20: LET UD% = 1
LET LIFE% = 3: LET TD% = 32000
LET h% = 100
10 CLS
11
LET I% = I% + 1
IF I% >= h% THEN 200
IF MID$(STAR$(UD%), LR%) >= "*" THEN GOSUB 100
LOCATE 1, 1: PRINT ""; STAR$(1)
LOCATE 2, 1: PRINT ""; STAR$(2)
LOCATE 3, 1: PRINT ""; STAR$(3)
LOCATE 4, 1: PRINT ""; STAR$... |
Attribute VB_Name = "SerialOutputLog"
Option Explicit
Public Const Caption = "Serial Port"
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
' Ouput that we will write to
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Private Property Get Output() As Tex... |
10 s=54272
20 for l=0 to 24:poke s+l,0:next
30 poke s+1,100
40 poke s+5,219
50 poke s+15,28
60 poke s+24,15
70 poke s+4,19
80 for t=1 to 5000:next
90 poke s+4,18
100 for t=1 to 1000:next:poke s+24,0
|
100 REM DIRECTOR Program.
110 REM Program Directory for the Genealogy ON DISPLAY Programs
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 DATA Genealogy
140 DATA Program Directory
150 DATA -1
160 DATA 1
170 INDENT = 0
180 REM Printer Definitions
190 FORM.FEED$ = CHR$(12)
200... |
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 YEARS_REQUIRED=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 ... |
1 REM BEER NAZI
10 PRINT "HOW OLD ARE YOU?"
20 INPUT A
30 IF A<18 THEN 80
40 PRINT "HERE IS YOUR BEER"
45 PRINT "NEXT!"
50 END
80 PRINT "NO BEER FOR YOU!"
|
_TITLE "Log"
SCREEN 13
icon = _LOADIMAGE("..\resources\jarvis.png")
_ICON icon
SCREEN 0
WIDTH 128, 32
logpos = 1048576
DO
_LIMIT 64
OPEN "..\data\log.jdf" FOR INPUT AS #1
IF LOF(1) <> oldlof THEN
REDIM log$(1048576)
logcount = 1
DO
LINE INPUT #1, log$(logcount)
... |
10 DATA "ALPHA","BETA","GAMMA"
20 READ A$,B$,C$
30 PRINT A$,B$,C$
40 IF A$>="BETA" THEN 46
42 PRINT A$;" NOT GREATER THAN OR EQUAL TO 'BETA'"
44 GOTO 50
46 PRINT A$;" GREATER THAN OR EQUAL TO 'BETA'"
50 IF B$>="BETA" THEN 56
52 PRINT B$;" NOT GREATER THAN OR EQUAL TO 'BETA'"
54 GOTO 60
56 PRINT B$;" GREATER THAN OR EQU... |
5 ONERRORGOTO900
20 MODE8:DIM:r=0:h=0:c$=CHR$(5)
30 CLS:PRINT"2çrh+2çr’ r:radius h:height";
40 s$="r":z=r:GOSUB500:r=z
50 s$="h":z=h:GOSUB500:h=z
70 LOCATE0,1:PRINTc$;"Surface =";2*PI*r*(r+h);:z$=INPUT$(1,@):GOTO40
500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
900 IFERR=1 THENCLS... |
'PRODUCE A BAR GRAPH ON THE SCREEN WITH A SET OF GIVEN DATA
ON ERROR GOTO help
DIM dataa(1 TO 20)
DIM num$(0 TO 9)
num$(1) = "A"
num$(2) = "BB"
num$(3) = "CCC"
num$(4) = "DDDD"
num$(5) = "EEEEE"
num$(6) = "FFFFFF"
num$(7) = "GGGGGGG"
num$(8) = "HHHHHHHH"
num$(9) = "IIIIIIIII"
num$(0) = " "
FOR i =... |
1 %TITLE "Product Ordering Report"
%SBTTL "IC_RPRT_LOSTSALES"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1991 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 in... |
10 s=54272
15 poke s+14,114:poke s+15,10
16 poke s+3,8:poke s+2,0:poke s+14,255:pokes+15,3:poke s+18,32
18 poke s+24,15
20 poke s+5,15:poke s+6,240
30 poke s+4,19
50 for t=1 to 80:poke s+1,t+0:next
55 for t=80 to 1 step -1:poke s+1,t+50:next
70 goto 30
|
10 input "(a, b)?",a,b
15 if a+b = 0 then 30
20 print "a + b = ";a+b
25 goto 10
30 end
|
CLS
A=0
COLOR 4,15
SCREEN 1
A=INT(RND*15)
LOCATE 2,2
PRINT A
END |
dbMemo "SQL" ="SELECT ts.Unit_Code, ts.Visit_Year, ts.Route, ts.PlantCode, ts.IsDead, SUM(ts.Tr"
"ansectAverageCover) AS TotalTransectAverageCover\015\012FROM Transect_AverageCov"
"er AS ts\015\012GROUP BY ts.Unit_Code, ts.Visit_Year, ts.Route, ts.PlantCode, ts"
".IsDead\015\012ORDER BY ts.Unit_Code, ts.Vi... |
'THIS PROGRAM IS TO CHECK WHETHER ONE CAN VOTE OR NOT.
PRINT "WHAT IS YOUR NAME?"
PRINT " "
INPUT name$
PRINT " "
PRINT "WHAT IS YOUR AGE?"
PRINT " "
INPUT age
CLS
PRINT "HELLO, ";name$
IF age >= 18 THEN
PRINT name$;" can vote."
ELSE
PRINT name$;" cannot vote."
END IF
END
|
' ploteg.bas
' plot a damped exponential to the screen and
' write the data points to a text file
' J Leis
'
SCREEN 12 ' vga screen mode 640 x 480 x 16
' scale the screen
tmin = 0: tmax = 1
ymin = -1: ymax = 1
WINDOW (tmin, ymax)-(tmax, ymin)
' open the text output file
OPEN "plot.dat" FO... |
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/Anima... |
rem Beispiel fuer Zahlenausgabe in
rem Hex- und Binaerdarstellung
for a=0 to 32
gosub 100
print " ", chr$(9),
gosub 200
print
next a
end
rem ***** Ende *****
rem ***** Unterprogramme *****
100:
rem *** Zahl binaer ausgeben ***
rem Zahl steht in a
rem b wird als Array definiert und
rem manipuliert; t, i w... |
010 REM
020 REM See ../README.md
030 REM
040 REM
050 REM Run as: basic.pl ch-1.bas < input-file
051 REM Input file should be terminated with a 0.
060 REM
100 INPUT n
110 IF n = 0 THEN END
150 s = s + n
160 c = c + 1
170 PRINT s / c
200 GOTO 100
|
SCREEN 12
WIDTH 80, 60
FOR a = 0 TO 1
FOR b = 0 TO 1
FOR c = 0 TO 1
FOR d = 0 TO 1
FOR e = 0 TO 1
FOR f = 0 TO 1
FOR g = 0 TO 1
FOR h = 0 TO 1
FOR i = 0 TO 1
FOR j = 0 TO 1
FOR k = 0 TO 1
FOR l = 0 TO 1
FOR m = 0 TO 1
PRINT a; b; c; d; e; f; g; h; i; j; k; l; m
NEXT m
NEXT l
NEXT k
NEXT j
NEXT i
NEXT h
NEXT g
NEXT f
NE... |
1 REM POKE MODE INTO LAYER 1
2 REM TILED, 4BPP, ON
3 REM IMAGESET ADDRESS $1A800
4 REM TILEMAP ADDRESS $10000
10 VPOKE $F,$2000,$61:VPOKE $F,$2001,$31
11 VPOKE $F,$2002,$00:VPOKE $F,$2003,$40
12 VPOKE $F,$2004,$00:VPOKE $F,$2005,$6A
13 PRINT "POKING PALETTE"
14 REM POKE PALETTE DATA
20 VLOAD "KQ5PAL.BIN",8,$0F,$1000
3... |
Attribute VB_Name = "mGDI"
' Fichier mGDI.bas
' ----------------
' ======================================================================
' Author: SP McMahon
' Date: 14 July 1998
' To be used with the Sprite classes.
' ======================================================================
Option Expl... |
10 REM 'ABS' TEST PROGRAM
20 X = 35
30 PRINT "ABS PASSED THE TEST IF ";
40 PRINT ABS(-435.28);" ";
50 PRINT ABS(-.03245);" ";
60 PRINT ABS(-X)
70 PRINT "ARE ALL PRINTED AS POSITIVE VALUES."
99 END
|
0010 print " beginwaarde =a"
0020 input a
0030 print "eindwaarde =b"
0040 input b
0050 if b<a then 0130
0060 n=a
0070 if n<0 then 0200
0080 print "n=",n;" wortel uit n=",sqr(n)
0090 if n=b then 0120
0100 n=n+1
0110 goto 0070
0120 end
0130 print "b moet groter zijn dan a"
0140 end
0200 print "n=",n,"n is negatief, de op... |
Operation =1
Option =0
Where ="(((qasub_Events_scope_filter.Markers_updated)=True) AND ((tbl_Markers.Marker_ID)"
" Is Null)) OR (((qasub_Events_scope_filter.Markers_updated)=False) AND ((tbl_Mar"
"kers.Marker_code) Is Null Or (tbl_Markers.Marker_code)<>'None') AND ((tbl_Marker"
"s.Marker_ID) Is Not Null) A... |
CLS
DEFLNG A-Z
DIM factor(1000)
counter = 0
INPUT "Input a number "; num
PRINT
PRINT "Factors of"; num; "are :"
FOR i = 1 TO num
IF INT(num / i) = num / i THEN
counter = counter + 1
factor(counter) = i
sum = sum + i
PRINT i,
END IF
NEXT
PRINT
PRINT
PRINT " Sum of factors ="; sum
IF INT(num / 2) = ... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 RANDOMIZE TIMER
20 A = RND(x)
30 PRINT A
|
10 REM Dice Tossing
20 GOTO (30+ABS(RND)%6)
30 PRINT'" *"''; END
31 PRINT" *"''"*"'; END
32 PRINT" *"'" *"'"*"'; END
33 PRINT"* *"''"* *"'; END
34 PRINT"* *"'" *"'"* *"'; END
35 PRINT"* *"'"* *"'"* *"'; END
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =4530
... |
REM * SLOT MACHINE
REM * BASED ON SLOTS
REM * FROM '101 BASIC COMPUTER GAMES'
1 CALL CLEAR
2 DIM D(3)
3 INPUT "BANKROLL: $ ":B
4 IF B<1 THEN 3
5 I=B
9 PRINT
20 FOR B1=1 TO 3
21 RANDOMIZE
22 LET D(B1)=INT(RND*6+1)
23 NEXT B1
30 FOR G1=1 TO 3
31 RANDOMIZE
32 ON D(G1) GOTO 40,42,44,46,48,50
40 PRINT "BELL ";
41 GOTO 5... |
00 PRINT "Fatorial"
03 LET numero = 5
05 LET fatorial = 1
07 REM início do laço principal
10 FOR i = 1 TO numero
15 LET fatorial = fatorial * i
16 REM
20 NEXT i
25 PRINT "Fatorial de ", numero, ": ", fatorial
30 END
|
DECLARE SUB load ()
DECLARE SUB save ()
DECLARE FUNCTION MouseInit% ()
DECLARE SUB MouseDriver (AX%, bx%, CX%, DX%)
DECLARE SUB MouseHide ()
DECLARE SUB MouseShow ()
DECLARE SUB mousestatus (lb%, rb%, xmouse%, ymouse%)
DEFINT A-Z
SCREEN 12
DIM SHARED mouse$
GOSUB mouse
MouseShow
load
FOR A = 1 TO 2
... |
DIM numbers(5) AS INTEGER
DIM searchnum AS INTEGER
DIM found AS INTEGER
DIM x AS INTEGER
DIM cont AS STRING
DO
CLS
FOR x = 1 TO 5
INPUT "Please Enter The Number:", numbers(x)
NEXT x
CLS
INPUT "Enter The number to be searched:", searchnum
CLS
PRINT
PRINT
found = 0
FOR ... |
REM JUST ENTER SOMETHING AND IT'LL BE FONTED WITH A SHADOW
REM NOTE: IF YOU DON'T WANT THE SHADOW WRITE % AT THE END
SCREEN 12
LOCATE 1,1
INPUT"",A$
IF RIGHT$(A$,1)="%" THEN A=INSTR(A$,"%"):LOCATE 1,A:PRINT" ":GOTO NOSHADOW
FOR A=0 TO 320
FOR B=0 TO 50
N=B*2
IF POINT(A,B)=15 THEN LINE(A*2-N... |
RANDOMIZE TIMER
CLS
DIM mina(10)
DIM jakaja(10)
DIM voitot(10, 11)
DIM eivoitot(10, 11)
DIM tasapelit(10, 11)
DIM eitasapelit(10, 11)
DIM pisteet(10, 11)
DIM eipisteet(10, 11)
DIM lisaako(10, 11)
DIM assa, kortti AS INTEGER
FOR a = 0 TO 11
FOR b = 0 TO 10
voitot(b, a) = 0
eivoitot(b, a) = 0
... |
10 OUT 99,1
20 FOR I=20 TO 87
30 OUT 98,I
40 PRINT I
50 FOR J=1 TO 500
60 NEXT J
70 NEXT I
80 OUT 99,0
|
Attribute VB_Name = "Modul2"
Function Lista() As Variant
Dim result(1 To 3) As Variant
result(1) = "HEJ"
result(2) = "DÅ"
result(3) = "GE"
Dim s As New ResourceSprintf
Debug.Print s.sprintf("%#7.3g", 100)
End Function
Sub Makro2()
Attribute Makro2.VB_ProcData.VB_I... |
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSExcel.Amdk.xls
Type: Text
-------------------------------------------------------------------------------
VBA MACRO Virus.MSExcel.Amdk.xls
in file: Vi... |
Auto 0
# Run-time Variables
Var f: Num = 2
Var a$: Str = "matty"
Var b$: Str = "attymay"
# End Run-time Variables
10 PRINT "PIG LATIN"
20 INPUT "Give me a word: ";a$
30 LET F=1
40 IF A$(F)<>"a" AND a$(f)<>"A" AND a$(f)<>"e" AND a$(f)<>"E" AND a$(f)<>"i" AND a$(f)<>"I" AND a$(f)<>"o" AND a$(f)<>... |
100 DEFINTA-Z:COLOR15,4,7:SCREEN3
110 LINE(0,0)-(255,191),0
120 VDP(7)=&HF5:FORI=0TO1000:NEXT
130 VDP(7)=&HF7:FORI=0TO1000:NEXT
140 VDP(7)=&HF4:FORI=0TO1000:NEXT
150 GOTO120
|
10 MODE 0
20 VDU 23,1,0;0;0;0;
30 GCOL 0,1
40 DIM DITHER(4,4)
50 FOR R%=1 TO 4
60 FOR C%=1 TO 4
70 READ DITHER(R%,C%)
80 NEXT
90 NEXT
100 FOR C%=1 TO 16
110 D%=640/C%
120 FOR A%=0 TO 7
130 FOR B%=0 TO 1279
140 X%=(B%MOD640)*2
150 Y%=1024-(C%-1)*64-(B%DIV640)*32-A%*4
151 N%=16*(B% MOD D%)/D%
152 IF (B% DIV D%) MOD 2 = 1... |
1 %TITLE "Sales Journal Report"
%SBTTL "AR_RPRT_SJ01"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1993 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 ... |
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines ... |
DECLARE SUB drawbuilding ()
DECLARE SUB promt ()
DECLARE SUB main ()
DECLARE SUB comm ()
DECLARE SUB xit ()
DECLARE SUB password ()
DECLARE SUB submers ()
DECLARE SUB box (X1#, Y1#, X2#, Y2#, X3#, Y3#, X4#, Y4#)
DECLARE SUB title (TIT$)
DECLARE SUB safety ()
DECLARE SUB cam ()
DECLARE SUB Options ()
DECLARE... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =... |
DEFINT A-Z
'$INCLUDE: 'MOUSE.BI'
'$DYNAMIC
DIM Undo(32000)
STACK 512
Com$ = UCASE$(COMMAND$)
re:
a = 0
IF INSTR(Com$, "MCGA") THEN GOTO MCGA
IF INSTR(Com$, "EGA") THEN GOTO EGA
IF INSTR(Com$, "CGA2") THEN GOTO CGA2
IF INSTR(Com$, "CGA") THEN GOTO CGA
MCGA:
ON ERROR GOTO EGA
SCREEN 13
MaxX = 319
MaxY... |
CLS
SCREEN 12
OPEN "add.txt" FOR APPEND AS #1
w$ = "y"
DO WHILE w$ = "y"
CLS
LOCATE 3, 9
PRINT "ADD A BOOK ?????"
LOCATE 5, 9
PRINT "INPUT THE FOLLOWING INFORMATION"
LINE (10, 10)-(565, 455), 15, B
LINE (10, 10)-(20, 455), 4, BF
LINE (555, 10)-(565, 455), 4, BF
LINE (430... |
1 mode 0:goto 10
2 c$=c$+" ":k=0:d$=n$
3 k=k+1:a$=left$(c$,k):if right$(a$,1)<>" " then 3
4 b$=mid$(c$,k):if left$(b$,1)=" " then k=k+1:goto 4
5 if b$="" then n$="***":goto 7
6 b$=left$(b$,len(b$)-1)
7 a$=left$(a$,len(a$)-1):v$=left$(a$+"***",3)
8 n$=left$(b$+"***",3):if n$<>"it*" an... |
'ESTE PROGRAMA LEE EL ENCABEZADO DE UN PCX
'EXTRAIDO DE UN PC USERS - A¥O IV - 21 - 1993
'LO SAQUE DE LA BIBLIOTECA DEL NACIONAL
'TRADUCIDO A BASIC POR AGF.
'el header tiene 128 bytes
'byte item tam descripcion
'0 fabricante 1 constante 10=zsoft.pcx
'1 version 1 ... |
10 REM -----------------------------
20 REM Tetris for RetroZ-SBC
30 REM an S80 Single Board Computer
40 REM ------------------------------
45 cls
50 esc$=CHR$(27)
52 vtcmd$=esc$+"["
60 Black$="2;30m"
61 DRed$="2;31m"
62 DGreen$="2;32m"
63 DYellow$="2;33m"
64 DBlue$="2;34m"
65 DMagenta$="2;35m"
66 DCyan$="... |
10 DIM ARRAY(60,60)
20 FOR Y=-30 TO 29
30 FOR X=-30 TO 29
40 V=(X/30)^2+(Y/30)^2
50 IF V>1 THEN NX = X : NY = Y : GOTO 120
60 IF V=0 THEN NX=0 : NY=0 : GOTO 120
70 V = SQR(V)
80 SCALE = TAN(ATN(V)*2)/V
90 IF ABS(SCALE) > 10 THEN NX = X : NY = Y : GOTO 120
100 NX = CINT(SCALE*X/5) : NY = CINT(SCALE*Y/5)
110 IF... |
REM Graphicks Drawer ver. 1.0
CLS
SCREEN 1
PRINT "Graphics Drawer ver. 1.0"
INPUT "Type <1> to Load or <2> to Create - ", TYP
IF TYP = 2 THEN
CLS
GOTO Repeat
ELSEIF TYP = 1 THEN
INPUT "Filename (DAT) - ", FLNM$
IF FLNM$ = "" THEN END
INPUT "Screen Size Xs,Ys - ", Xs, Ys
I... |
'Program to test correlation of VDC fraction coordinates.
'Compiler: PBWIN 10.04.0108 (www.powerbasic.com).
'Last modification: 03-15-2014 ~1832 HRS EST
'(c) Richard A. Formato. All rights reserved worldwide.
'This source code is FREEWARE. It may be freely copied,
'distributed and used as long as this copyri... |
REM QBASIC
REM tafel
INPUT "(qbasic) Welke tafel ?:", i
FOR j = 1 TO 10
PRINT j; " * "; i; " = "; i * j
NEXT j
SYSTEM
|
INPUT R
pi=3.14159265359
p = 2 * pi * R
s = pi * R ^ 2
PRINT "S= "; s
PRINT "P= "; p
|
10 REM INSTRUCTIONS FOR "SUPER STARTREK" MAR 5, 1978
20 FOR I=1 TO 12:PRINT:NEXT I
21 ? TAB(10);"*************************************"
22 ? TAB(10);"* *"
23 ? TAB(10);"* *"
30 ? TAB(10);"* * * SUPER STAR TREK * * *"
31 ? TAB(10);"* ... |
option explicit
public const WH_CBT = 5
public const WH_KEYBOARD_LL = 13 ' Low level keyboard events (compare with WH_KEYBOARD)
public const WH_SHELL = 10 ' Notification of shell events, such as creation of top level windows.
public const HC_ACTION = 0
global keyboard_ev as IKeyboardEven... |
' Mediaeval Merchants
' Experiment to prototype concepts, nothing is implemented
'$INCLUDE: 'UTIL.BI'
DEFINT A-Z
DECLARE SUB GameStart ()
DECLARE SUB GameEnd ()
DECLARE SUB Load ()
DECLARE SUB DrawOpeningBorder ()
DECLARE FUNCTION Opening ()
CALL SetupTimer(2048)
SCREEN 0 '25 x 80
LOCATE ,,0
DO
C... |
Attribute VB_Name = "GetRegistry"
Option Explicit
Private Const KEY_ALL_ACCESS As Long = &H3F
Private Const HKEY_LOCAL_MACHINE As Long = &H80000002
Private Const REG_SZ As Long = 1
Private Const ERROR_SUCCESS As Long = 0
Private Declare Function RegOpenKeyEx _
Lib "advapi32.dll" Alias "RegOpenKeyExA" _
(ByVal ... |
10 print chr$(147);chr$(5)
20 print:print
30 for i=1 to 20:for j=1 to 25
40 print tab(10)"+";
50 next j:print:next i
60 print chr$(19):end |
#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
|
Attribute VB_Name = "OracleError"
' This code module rebuilt by VBRezQ v3.3a. 2-Feb-2012 / 19:56:32
Option Explicit
'Sub Subr_715()
'N * ref: __vbaExceptHandler
'N * ref: "select chr(126)||chr(39)||name||chr(39)||chr(126) from v$database where rownum=1"
'N * ref: "%String_Col%"
'N * ref: __vbaVarVargNofree
'N ... |
Attribute VB_Name = "Trabajo"
'Argentum Online 0.12.2
'Copyright (C) 2002 M�rquez Pablo Ignacio
'
'This program is free software; you can redistribute it and/or modify
'it under the terms of the Affero General Public License;
'either version 1 of the License, or any later version.
'
'This program is distributed in the ... |
5 ti$="000000"
10 input"1. wort";a$:input"2. wort";b$
20 l0=len(a$)+1:l1=len(b$)+1
30 dim co(255):dim nc(255)
40 for i=0tol0-1:co(i)=i:next
50 for j=1tol1-1
60 nc(0)=j
70 for i=1tol0-1
80 ma=1: if mid$(a$,i,1)=mid$(b$,j,1) then ma=0
90 cr=co(i-1)+ma
100 ci=co(i)+1
110 cd=nc(i-1)+1
120 ct=ci:ifcd<cithenct=cd... |
DECLARE FUNCTION abfr% (t$)
DECLARE FUNCTION abfrage% (t$)
ON TIMER(60) GOSUB Zeit
CLS
RANDOMIZE TIMER
INPUT "Mit Ton bei Fehler"; antw$
SLEEP 1
CLS
SLEEP
z1 = TIMER
TIMER ON
DO
zurueck: taste = INT(RND * 223) + 32
tasten$ = CHR$(taste)
SELECT CASE tasten$
CASE " " TO CHR$(34), "$" TO "&", "(" TO ")", ",... |
1 %TITLE "Employee Master File Maintenance"
%SBTTL "PR_MAIN_TK_EMP_QUERY"
%IDENT "V3.6a Calico"
FUNCTION LONG PR_MAIN_TK_EMP_QUERY(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.
!
... |
' Balloon Trip | IchigoJam BASIC
' Copyright (c) 2015 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2015
5 'ÊÞÙ°ÝÄØ¯Ìß
10 CLS:CLV:LET Y,11:LET L,10
20 SCROLL 1
30 IF S%L==0 LC 0,RND(23):? "+";
40 LC 31,Y:? CHR$(232);
50 LC 31,Y+1:? CHR$(237);:WAIT L
60 LET I,BTN():LET Y,Y-I+... |
DIM Arg AS LONG
Arg = VAL(COMMAND$)
FUNCTION GetFactorial(Num AS LONG) AS LONG
IF Num < 2 THEN
GetFactorial = INT(1)
ELSE
GetFactorial = Num * GetFactorial(Num - 1)
END IF
END FUNCTION
FUNCTION GetFibonacci(Num AS LONG) AS LONG
IF NUM < 3 THEN
Fib = INT(1)
ELSE
Fib = GetFibonacci(Num - 1) + ... |
10 REM PROJECT SIMULATOR
12 REM
14 REM A PROJECT CONSISTS OF A NUMBER OF SEQUENTIAL TEAMS
16 REM EACH TEAM PERFORMS A RANDOM QUANTITY OF WORK ON ITEMS
18 REM THE PROJECT STARTS WITH SOME NUMBER OF ITEMS
20 REM THE SIMULATION RUNS FOR A SPECIFIED NUMBER OF WEEKS
100 REM THE NUMBER OF TEAMS
102 READ N
110 REM THE CAPACI... |
DECLARE FUNCTION CABS! (A1!, A2!)
DECLARE FUNCTION CDIV1! (A1!, A2!, B1!, B2!)
DECLARE FUNCTION CDIV2! (A1!, A2!, B1!, B2!)
DECLARE FUNCTION CSQR1! (X!, Y!)
DECLARE FUNCTION CSQR2! (X!, Y!)
FUNCTION CABS (A1, A2)
X = ABS(A1)
Y = ABS(A2)
IF X = 0! THEN
CABS = Y
ELSEIF Y = 0! THEN
CABS = X
ELSEIF X > Y ... |
10 CLS
20 A$ = "FOR i=1 TO 5:Tmp$=Tmp$+STR$(i)+SPACE$(1):NEXT:A$=Tmp$"
30 EVAL A$
40 PRINT
50 PRINT " A$ =: ",A$
60 PRINT "Tmp$ =: ",Tmp$'Tmp$ was created inside A$ in Line 20
|
1 %TITLE "Tax Profile Maintenance"
%SBTTL "PR_MAST_TAX_PROFILE"
%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 with
... |
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... |
100 REM Purpose: Verify collating sequence (sort order)
110 REM Author: Howard Wulf, AF5NE
120 REM Date: 2015-11-28
130 REM
200 IF "1" < "A" THEN 300
210 PRINT "EBCDIC"
220 GOTO 999
300 PRINT "ASCII"
999 END
|
10 PRINT "PROGRAM FILE 145: ERROR - TWO ARGUMENTS IN LIST FOR"
15 PRINT " RND FUNCTION."
20 PRINT " ANSI STANDARD 7.2, 7.4, 8.2, 8.4"
30 PRINT
40 PRINT "SECTION 145.1: ERROR - TWO ARGUMENTS IN LIST FOR"
45 PRINT " RND FUNCTION."
50 PRINT
60 PRINT "THIS SECTION TESTS WHAT HAPPENS WHEN THE RND FUNCTION I... |
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
... |
1 PRINT TAB(33);"QUEEN"
2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
3 PRINT:PRINT:PRINT
10 DIM S(64)
11 FOR I=1 TO 64
12 READ S(I)
13 NEXT I
14 DATA 81, 71, 61, 51, 41, 31, 21, 11
15 DATA 92, 82, 72, 62, 52, 42, 32, 22
16 DATA 103, 93, 83, 73, 63, 53, 43, 33
17 DATA 114, 104, 94... |
10 REM 'RIGHT' TEST PROGRAM
20 A$="CONTEST"
30 B$=RIGHT$(A$,4)
40 PRINT "THE 'RIGHT' FUNCTION PASSED THE ";B$
99 END
|
' Declaracion de variables
INTEGER num1,num2[234]
FLOAT num3
STRING name[26]
REM Asignacion de variables
name = "Juan Jose"
num2 = 12312
num3 = 131312.12
REM Salida de datos
PRINT "Hello World!"
PRINT "Hello" ; " World!"
PRINT "My name is " ; name
PRINT "I have " ; num1 ; " years old"
PRINT 4+2/5 ; " is expresion... |
'fully factor.bas SmallBASIC 0.12.6 [B+=MGA] 2016-06-11
n = 2
WHILE n >= 2
INPUT "Enter a number to factor (if < 2, quit), number > ";n
IF n < 2 THEN END
REPEAT
fd = 0 : test = 2
WHILE test <= n ^.5
IF n % test = 0 THEN fd = test : EXIT LOOP
IF test = 2 THEN test = 3 ELSE test = test + 2
... |
Attribute VB_Name = "modMonitorFuncs"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modMonitorFuncs"
'VGC 03/23/2017: CHANGES!
'oxX frmAccountComments
'oxX frmAccountContacts
'oxX frmAccountHideTrans2_One
'oxX frmAccountIncExpCodes
'oxX frmAccountIncExpCodes_BlockAssign
'o... |
10 cls
20 print
30 print " Hello, World"
40 print " --------------"
50 print
60 print "The time is";
70 print in(0); " :";in(1)
80 print
90 print "A random number for you:"
100 print in(12)*256+in(13)
110 print
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.