text stringlengths 7 5.36M |
|---|
10 I2C open 400,100
11 I2C write &h42,0,3,1,2,6 'switch to mode 6
12 Pause 100
13 Restore
14 color 136,255:color2 30,0
15 GoTo 210
20 Y=R*CP: X=Y*CL: Y=Y*SL: Z=R*SP
30 XX=(AX*X)+(AY*Y)+(AZ*Z): YY=(BX*X)+(BY*Y)+(BZ*Z)
40 ZZ=(CX*X)+(CY*Y)+(CZ*Z)
42 If YY>0 Then
45 F2=0: F1=0
47 Return
48 EndIf
50 X2=X0+XX+H: Y2=Y0-... |
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Ma uplne prvni hra.Ovladate malym 'a' a musite chytit znak ² '
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
RANDOMIZE TIMER
CLS
LET e = 1
LET f = 1
LET g = 1
LET h = 1
FOR kon = 1 TO 30
LET g = ... |
10 ! &
! Program name: wpscvt Compiled with SCALE 0 on V08.0 &
! Decompiled on 24-Nov-16 at 03:11 AM
30 ON ERROR GOTO 19000 &
\ JUNK$=SYS(CHR$(6%)+CHR$(-7%)) &
\ JUNK$=SYS(CHR$(6%)+CHR$(9%)) &
\ JJ%=ASCII(LEFT(JUNK$,1%))/2% &
\ JJ$=RIGHT(NUM1$(JJ%+100%),2%)
60 CH%=1% &
\ OPEN "KB:" AS FILE 1%, MODE 8%... |
'Chip parameters
$Regfile="m328pdef.dat"
$Crystal=16000000
$baud = 9600
$hwstack=40
$swstack=16
$framesize=32
'Include libs
$lib "lcd_pcf8574.lib"
'Input variables
'Inputbox
Dim rs_232 as byte ' Main variable for ischar
Dim pickparameter as byte ' Parameter for selecting variables
Dim wyear as Byte ... |
DIM arows, acols AS INTEGER
DIM brows, bcols AS INTEGER
DIM r, c AS INTEGER
CLS
INPUT "A rows: ", arows
INPUT "A columns: ", acols
DIM a(arows, acols) AS DOUBLE
FOR r = 1 TO arows
FOR c = 1 TO acols
PRINT "A ["; r; "] ["; c; "]: ";
INPUT a(r, c)
NEXT
NEXT
PRINT
INPUT "B rows: ", brows
INPUT "B columns: ", bcols
DIM... |
5 'Running average, for Chipmunk BASIC, web: http://rudih.info
10 usernumber = 0
20 PRINT "---Running average---"
30 DO WHILE (usernumber >= 0)
40 INPUT "Enter number or -1 to stop: ", usernumber
50 count = count + 1
60 total = total + usernumber
70 answer = total / count
80 PRINT answer
90 LOOP
|
1 REM \xc1@ABCD\xc3ű+\xc3~+\xc3\x8b+\xc3\xf8+\xc3",\xc36,\xc3`,ÁÚÖ\x0eá\xdbZW\xe6Ó\xfeÍ(\x0ay\xc6áOz\x0f\x0fWá\xf0y!\xfe*ÚŐw#<á\xfb\xf5\xc5\xd5:Í+O:\xfd*\xf6\xc1\xedy2\xfd*úÁÚÁ:\xfe*O\xedx\xcbO \x0cá\xf8ő \xef!ÉÁ\xd1\xc1\xf1\xc9úÁÚÁ\xedx\xcbO(Üá\xf8ő \xf3ű\xe8\xd1\xc1\xf1!ÁÁ\xc9{w\x0bx\xb1(Ő\xe5\xd1ó\xed\xb0\xc9\xf... |
IF usercommand$(runcommands) = "time" THEN
DO
FOR runcommands2 = 1 TO usercommands
IF usercommand$(runcommands2) = "standby" OR usercommand$(runcommands2) = "stand" THEN EXIT DO
NEXT runcommands2
hours$ = LEFT$(TIME$, 2)
hours = VAL(hours$)
IF timepref = 1 THEN
... |
'flash 1 led
10 Print "Hello World"
20 SetPin GP21, DOUT
30 Pin(GP21) = 1
40 Pause 300
50 Pin(GP21) = 0
50 Pause 300
60 GoTo 30
|
\******************************************************************************
\******************************************************************************
\***
\*** FILE FUNCTIONS Boots.com Parcel File (BDCP)
\***
\*** REFERENCE: BDCPFUN.BAS
\***
\*** VERSION A Neil Bennett ... |
0 REM Error en if (linea 140)
10 PRINT "Cual es tu nombre?: "
20 INPUT U$
30 PRINT "Hola "; U$
40 PRINT "Cuantas estrellas quieres?: "
50 INPUT N
60 LET S$ = ""
65 DIM A(1)
70 FOR I = 1 TO N
80 LET S$ = S$ + "*"
90 NEXT I
100 PRINT S$
110 PRINT "Quieres mas estrellas? "
120 INPUT A$
130 IF A$ = "S" THEN 30
135 DEF FNA(... |
5 RANDOMIZE TIME:MODE 2:GOSUB 5000
6 DEFINT a-z
10 DIM C$(31),ro$(32),R(32,4),O$(33,8),p$(35):CLS
20 O$(1,1)="immovable door":O$(2,1)="a delicious looking malt":O$(2,2)="* platinum spoon"
30 O$(5,1)="sign":O$(6,1)="tombstone":O$(7,1)="motocycle":O$(8,1)="woman":O$(10,1)="folded piece of paper"
40 O$(12,1)="safe":O... |
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... |
10 'PROGRAM 6
20 CLS
30 INPUT "WHAT IS THE UNIT PRICE FOR PKG. 1?"; PKG1
40 INPUT "WHAT IS THE UNIT PRICE FOR PKG. 2?"; PKG2
50 PRINT "UNIT PRICE FOR PKG. 1", PKG1
60 PRINT "UNIT PRICE FOR PKG. 2", PKG2
70 END
|
1 %TITLE "Print Checks"
%SBTTL "AP_FORM_CDJCHK"
%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
! the inclusion of ... |
' €¬«æ «¦ §¨áš£˜, « ᮤœ « ª « £œª «žª ©¬¤˜¨«ž©žª «¦¬ ž£ «æ¤¦¬
' §¦¬ ®¨ž© £¦§¦ é ©«¦ asm.
In% = 0
OPEN "SIN.INC" FOR OUTPUT AS 1
FOR i% = 0 TO 127
' 128 angle! |
' 360 a! | a! = 360 * angle! / 128
'
a! = 360! * i% / 128
aInPI! = a! * 3.141593 / 180
n% = SIN(aInPI!) * 128
... |
10 PRINT"TEXT AREA ONE"'
20 RETURN
|
1000 rem ****************************************
1010 rem * this program is a sketching multi- *
1020 rem * colour pallet. it allows you to plot *
1030 rem * points on the screen using the *
1040 rem * cursor keys in multi colout mode. *
1050 rem * there are two sections of the program*
1060 rem * they are ... |
REM ---------------------------------------------------
REM
REM SNOOPY.BAS
REM
REM SNOOPY KICKING A BALL
REM
REM AUTHOR: ANONYMOUS
REM DATE: 20/12/1992
REM CONVERTED TO MBASIC BY ANDRE MURTA
REM
REM DEVELOPED AT CENTRO DE ENSINO SUPERIOR DO PARA
REM
REM ---------------------------------------------------
100 GOSUB 590... |
SCREEN 12
CONST PI = 3.14159265358#
x = 320
y = 300
DO
CIRCLE (320, 240), 200
a$ = INKEY$
LINE (x, y)-(xl, yl), 0
LINE (x, y)-(xr, yr), 0
LINE (xl, yl)-(xr, yr), 0
xl = SIN(s - 60 / 180 * PI) * 100 + x
yl = COS(s - 60 / 180 * PI) * 100 + y
xr = SIN(s + 60 / 180 * PI) * 100 + x
yr = COS(s + 60 / 180 * PI) *... |
'
' Օրինակ 5
'
SUB Main
FOR i = 1 TO 16
PRINT i
END FOR
FOR j = 0 TO 16 STEP 3
PRINT j
END FOR
FOR k = 1 TO 16 STEP -2
PRINT k
END FOR
FOR k = 1 TO 16 STEP +6
PRINT k
END FOR
END SUB
|
1 %TITLE "Examination of Asset Number"
%SBTTL "AD_EXAM_ASSET"
%IDENT "V3.6a Calico"
FUNCTION LONG AD_EXAM_ASSET( STRING ASSETNUMBER, &
AD_35ASSET_CDD AD_35ASSET_EXAM)
!
! COPYRIGHT (C) 1989 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may... |
5 CLS
CLEAR
PRINT
PRINT "What do wish to convert?"
PRINT "Miles to Kilometres Press 1"
PRINT "Inches to Centimetres Press 2"
PRINT "I'd like to goto the toilet Press 3"
INPUT "1, 2 or 3 (If your dying to go):"; x
SELECT CASE x
CASE 1
GOTO 10
CASE 2
GOTO 20
CASE 3
GOTO 100
CASE ELSE
END SELECT
CLS
PRIN... |
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... |
Version =20
VersionRequired =20
PublishOption =1
RecordSelectors = NotDefault
AutoCenter = NotDefault
DividingLines = NotDefault
DataEntry = NotDefault
AllowDesignChanges = NotDefault
DefaultView =5
ScrollBars =0
PictureSizeMode =1
DatasheetGridlinesBehavior =3
GridX =24
Gri... |
Attribute VB_Name = "UTILITY"
Option Explicit
'##MODULE_REMARKS Copyright 2001-3 AQUA TERRA Consultants - Royalty-free use permitted under open source license
' ##MODULE_NAME UTILITY
' ##MODULE_DATE March 3, 2003
' ##MODULE_AUTHOR Mark Gray and Jack Kittle of AQUA TERRA CONSULTANTS
' ##MODULE_DESCRIPTION Genera... |
' ------------------------------------------------------------------------
' Visual Basic for MS-DOS Presentation Graphics
' ToolKit Demo Program
'
' CHRTSUBS.BAS - Chart demo support module.
'
' Chart demo is a menu-driven, Multiple Document
' Interface (MDI) program that demonstrates how to
' use the Presentation Gra... |
10 'OOOO Подготовка OOOO
20 CLEAR 600
30 OPEN "GRP:" AS #1
40 DATA C,D,E,F,G,A,B
50 DIM N$(20)
60 FOR I=0 TO 2
70 FOR J=0 TO 6
80 READ A$
90 N$(I*7+J)="O"+STR$(I+3)+A$
100 NEXT J
110 RESTORE
120 NEXT I
130 SCREEN 2,0
140 SPRITE$(0)=CHR$(192)+CHR$(192)
150 M$="... |
Attribute VB_Name = "ArrayTools"
'Adds an item to the end of a 1D array
Public Sub AddItem(ByRef ArrayArg() As Variant, ItemToAdd As Variant)
'Resize the array to hold 1 more item
If CountRows(ArrayArg) = 0 Then
ReDim ArrayArg(1 To 1)
Else
ReDim Preserve ArrayArg(LBound(Arra... |
0REM THE BEST OF INTERFACE PAGE 36
10 REM TWENTY ONE
20 PRINT $7$12;GOSUB 300
30 T=0;M=0;FOR Z=1 TO 5;E=0;F=0;GOSUB a;R=RND;S=RND
40 PRINT $12;@=0;?#E1=0
50 GOSUB w
60 IF E>0 P."YOU ROLLED A "Q';GOSUB w;PRINT" TOTAL IS "E'
70 IF E=0 PRINT"R TO ROLL, S TO STAND"'
80 INPUT $A;IF $A="R" THEN Q=ABSRND%6+1;E=E+Q
90 IF $... |
1 DATA 1, 2, 3
B: DATA 9, 10, 11
READ X,Y
PRINT X;Y
RESTORE 1
READ Z, W
PRINT Z;W
READ M, M, M, N
PRINT N
RESTORE B
READ M,M,N
PRINT N
READ N
REM exception Out of DATA
REM output
1 2
1 2
11
11 |
]PR#1
]CATALOG
DISK VOLUME 254
*A 003 AKALABETH
*A 005 AKA0
*A 002 AKA1
*B 034 AKA2
*B 034 AKA3
*B 018 AKA4
*B 034 AKA5
*A 086 AKA6 ... |
100 REM SHUTTER SPEEDS
110 REM
120 PRINT "SELECT PHOTO METHOD--"
130 PRINT " (A) PRIME FOCUS"
140 PRINT " (B) BARLOW PROJ."
150 PRINT " (C) EYEPIECE PROJ."
160 PRINT " (D) AFOCAL METHOD"
170 PRINT " (E) QUIT"
180 INPUT A$: PRINT
190 IF A$="A" THEN 250
200 IF A$="B" THEN 250
210 IF A$="C" THEN 330
22... |
5 rem ** requires simons' basic **
10 graphic 2
50 for n=0 to 10*pi step pi/50
60 point 1,511+(5+z)*sin(n),511+(5+z)*cos(n)
70 z=z+1
80 next n
90 goto 90
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily =111
PictureAlignment =2
DatasheetGridli... |
Check 3A2F2B60
Auto 1
10 POKE USR "P",BIN 00000000
20 POKE USR "P"+1,BIN 10101010
30 POKE USR "P"+2,BIN 01010100
40 POKE USR "P"+3,BIN 10101010
50 POKE USR "P"+4,BIN 00110100
60 POKE USR "P"+5,BIN 00111010
70 POKE USR "P"+6,BIN 11000100
80 POKE USR "P"+7,BIN 11001010
110 POKE USR "O",BIN 00000000
12... |
1 %TITLE "Blank Function"
%SBTTL "MAIN_JOURBLANK"
%IDENT "V3.6a Calico"
FUNCTION INTEGER MAIN_JOURBLANK(CDD_WINDOW_CDD SMG_WINDOW)
!
! 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 wi... |
1 defint A-Z
10 COLOR 2,1,1
20 SCREEN 2,2,0
30 'BLOAD "logic_r.sc2",s
50 BLOAD "xbasic.bin",R
60 'BLOAD "sprites.bin",S
90 LOAD "flappat.bas",R
|
Attribute VB_Name = "Chapter13"
Sub ExcelFileSearch()
'provide the file extension and the folder, VBA programs returns the file name, memory size, and last modified
Dim srchExt As Variant, srchDir As Variant
Dim i As Long, j As Long, strName As String
Dim varArr(1 To 1048576, 1 To 3) As Va... |
10 CLS:LOCATE 3,27: PRINT "Z ˜LE €IKILIR"
20 LOCATE 11,27: PRINT "MEHMET HARAS"
30 Y$=INKEY$
40 IF Y$="1" GOTO 200
41 IF Y$="2" GOTO 210
43 IF Y$="3" GOTO 220
44 IF Y$="4" GOTO 230
45 IF Y$="5" GOTO 240
46 IF Y$="6" GOTO 250
47 IF Y$="7" GOTO 260
50 IF Y$="8" GOTO 270
51 IF Y$="9" GOTO 280
60 IF Y$="0" GOTO... |
100 a=ALCHP(2000)
110 LBYTES ram1_JMSOFT_REL_bin,a
120 OPEN_OVER#3,ram1_JMS_asm
130 p=a
140 PRINT #3;' section sprite'
150 PRINT #3\\' xdef mes_jms'
160 PRINT #3\\'mes_jms'
170 PRINT#3;' dc.w $';HEX$(PEEK_W(p),16);',$';HEX$(PEEK_W(p+2),16):p=p+4
180 PRINT#3;' dc.w $';HEX$(PEEK_W(p),16);',$';HEX$(PEEK_W(p+2),16):p=p+4
1... |
REM "Area of a circle"
' Algorithm
' START
' 1. Ask for radius
' 2. Multiply 22/7 with the square of radius
' 3. Print the result
' END
CLS
DIM PI AS SINGLE
PI = 3.1415926
INPUT "Enter radius"; radius%
area! = PI * radius% * radius%
PRINT "The area of a circle with radius"; radius%; "is"; area!
END... |
# MODFLOW-NWT Basic Package
# MODFLOW Data Set
#
0 -1(25I3) -1 IBOUND Layer 1
9.9900e+02
0 100.000(10e12.4) -1 STARTING HEADS Layer 1
|
REM
CLS : A = 0
INPUT "ENTER A STRING="; S$
N = LEN(S$)
A = 0
FOR I = 1 TO N STEP 1
C$ = MID$(S$, I, 1)
A = A + 1
IF C$ = " " THEN
PRINT "LENGTH OF WORD="; A - 1
A = 0
END IF
NEXT I
PRINT "LENGTH OF WORD="; A
END
|
0 'THIS PROGRAM TAKES A FILE SAVED FROM A HI-RES GRAPHICS
1 'SCREEN (&HE00 TO &H25FF DISK, OR &H600 TO &H1DFF TAPE), AND
2 'CREATES FROM IT A RUNNABLE BASIC PROGRAM, SUITABLE FOR BBS
3 'UPLOADING, THAT RECREATES THE PICTURE FROM A COMPRESSED
4 'ASCII FORMAT AND SAVES THE BINARY OUTPUT TO DISK OR TAPE,
5 'ACCORDING TO ... |
1 'Example of DPEEK function and DPOKE statement
10 DPOKE &0,&55AA,&6000:'Write a word at 6000:0000
20 PRINT HEX$(DPEEK(&0,&6000)):'Get 1 word at 6000:0000 and print the hex representation
|
10 PRINT "NAME", "CITY"
20 PRINT "----------", "-------"
30 PRINT "ALBERMARLE", "DETROIT"
40 PRINT "CANTON", "ATLANTA"
50 PRINT "MILLER", "SAN FRANCISCO"
60 PRINT "WALLACE", "NEW YORK"
70 END
|
Attribute VB_Name = "modRegistry"
' Module modRegistry
' Fonctions d'accès à la registry depuis le VB
' 20/11/1997 PV
' 30/11/1997 PV EnumèreValeursRegistry
' 21/08/1998 PV Ajout du chemin dans les messages d'erreur
' 25/08/1998 PV EnumèreClésRegistry, exportation des fonctions R0xxx
' 7/04/2000 PV OpenRegKeyEx tente ... |
1 REM UP, UP, AND AWAY
5 PRINT "{clear}"
10 V = 53248 : REM START OF DISPLAY CHIP
11 POKE V + 21,4 : REM ENABLE SPRITE 2
12 POKE 2042,13 : REM SPRITE 2 DATA FROM BLOCK 13
20 FOR N = 0 TO 62 : READ Q : POKE 832+N,Q : NEXT
30 FOR X = 0 TO 200
40 POKE V + 4,X : REM UPDATE X COORDINATES
50 POKE V + 5,X : REM UPDATE Y COORD... |
9 REM *** Infinite loop program ***
10 PRINT "Guy Tavor ";
20 GO TO 10
|
10 rem incrementing a register
20 code = 49152
30 for loop = 0 to 16
40 read byte
50 poke code + loop,byte
60 next loop
70 rem
80 rem m/c data
90 data 169,65 : rem $a9,$41 - lda #asc"a" ; place ascii a in accumulator
100 data 170 : rem $aa - tax ... |
CLS
OPEN "min.in" FOR INPUT AS #1
OPEN "min.out" FOR OUTPUT AS #2
INPUT #1, n
DIM a(n)
FOR i = 1 TO n
INPUT #1, a(i)
NEXT i
min = a(1)
idx = 1
FOR i = 1 TO n
IF a(i) < min THEN
min = a(i)
idx = i
END IF
NEXT i
PRINT #2, LTRIM$(STR$(idx)); " "; LTRIM$(STR$(min))
CLOSE #1, #2
END... |
REM MacFractal (c) Jack Weber - October 1985
REM Plots fractal landscapes as a 3D grid by taking a random straight line
REM across the grid and raising (or lowering) all points to one side of the
REM line by one level step.
REM Full hidden-line removal.
REM Landscape may be flooded to any level.
REM Adjustable ve... |
COMMON x AS SINGLE
COMMON y AS SINGLE
DIM TempX(1 TO 100) AS INTEGER
DIM TempY(1 TO 100) AS INTEGER
RANDOMIZE TIMER
MaxPush = 5
FlashWide = 3
Start:
y = 0
x = 320
push = 1
SCREEN 12
PSET (320, 0)
10
y = y + push
x = x + (INT((FlashWide * 2 + 1 + c) * RND) - FlashWide) * push
LINE -(x, y)
IF y... |
10 s=54272
20 for l=0 to 24:poke s+l,0:next
30 poke s+3,8
40 poke s+5,41:poke s+6,89
50 poke s+14,117
60 poke s+18,16
70 poke s+24,143
80 read fr,dr
90 if fr=0 then end
100 poke s+4,65
110 for t=1 to dr*2
120 fq=fr+peek(s+27)/2
130 hf=int(fq/256):lf=fq and 255
140 poke s+0,lf:poke s+1,hf
150 next
160 poke s+4,64
170 go... |
10 gosub 100:print:print d$:goto 10
100 d$="":d=-l
110 poke 204,0:poke 207,0
120 get x$:if x$="" goto 120
130 if x$=chr$(13) then print" ";:poke 204,1:return
140 if asc(x$)=20 then if len(d$)>0 then d$=left$(d$,len(d$)-1):d=d-1:goto 170
142 if asc(x$)=20 goto 110
144 if x$="." then for j=0 to len(d$):if mid$(d$,... |
10 pO36878,15:pO36879,12:?"{clear}{white}":x=10:y=21:dx=-1:dy=-1:bx=10:c=7727:p=38447:v=1
20 t=300:m=75:fori=1to15:pOc+i,102:pOp+i,3:nexti:c=c+44:p=p+44:ifc<7944goto20
30 poke8164+bx,160:poke8164+bx+1,160:poke7680+y*22+x,32
40 getb$:ifb$="z"andbx>0thengoto110
50 ifb$="x"and bx<20 thengoto120
60 poke36874,0:x=x+dx... |
compile subroutine UTIL_GFE_MANAGER(param)
/*
Version Date Details
1.0 26/08/14 The birth!
1.1 27/08/14 Added revfile backup status for user feedback
1.2 19/03/15 Shortened variable names
1.3 19/03/15 Added dateStamped backup dir
1.4 20/03/15 Crea... |
CHDIR ".\programs\samples\n54\big\3dsviewer"
'----sub declarations
'--file stuff
DECLARE SUB ReadChunkInfo (ChunkInfoHolder AS ANY, BytePosition AS LONG)
DECLARE SUB SkipChunk (ChunkInfoHolder AS ANY, BytePosition AS LONG)
DECLARE SUB SearchForChunk (ChunkInfoHolder AS ANY)
DECLARE SUB ReadObject ()
'--3D engi... |
dbMemo "SQL" ="SELECT qrySchedulingSummaryForReport.ID, qrySchedulingSummaryForReport.*, qrySch"
"edulingSummaryForReportPress_Crosstab.*, qrySchedulingSummaryForReportPress_Cros"
"stab.ID\015\012FROM qrySchedulingSummaryForReport LEFT JOIN qrySchedulingSummary"
"ForReportPress_Crosstab ON qrySchedulingSum... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
ScrollBars =0
BorderStyle =0
DateGrouping =1
GrpKeepToge... |
DEFINT A-Z 'For faster program speed
'$INCLUDE: 'qb.bi' 'Interrupt Definitions by QuickBasic
'WINDOWS FUNCTIONS
DECLARE FUNCTION GetWinVer$ () 'Get the Windows version
DECLARE FUNCTION GetGDIInfo% (Index%) 'Get current WINOLDAP info
DECLARE ... |
10 sum = 0
20 n = 0
30 n = n + 1
00 read m
40 sum = sum + n*n
50 if n < 100 then 30
60 print sum
70 stop
|
10 REM TEST THE OPTION STATEMENT
20 DIM A(10)
30 FOR I = 1 TO 10
40 LET A(I) = I
50 NEXT I
100 OPTION BASE 0
110 FOR I = 0 TO 10
120 PRINT I;A(I)
130 NEXT I
200 OPTION BASE 1
210 FOR I = 0 TO 10
220 PRINT I;A(I)
230 NEXT I
999 END
|
10 for i = 1 to 9
20 for j = 1 to 9
30 print i;"x ";j;"= ";i*j
40 next j
50 next i
|
Attribute VB_Name = "Module1"
Public Const sMessage = "Sistema Global - Versión 202006231620"
Public Const mIPServer = "desa-ssvv.ausol.corp"
'Public Const mIPServer = "10.128.1.209"
'Public Const mIPServer = "127.0.0.1"
'Public Const mIPServer = "192.168.2.155" 'IP Urzagasti para pruebas con MYSQL Local en otras PCs
... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_WebUpload"
Name ="dbo_ContactName"
Name ="dbo_ContactGeneral"
Name ="dbo_CompanyEmployee"
End
Begin OutputColumns
Expression ="dbo_WebUpload.ID"
Expression ="dbo_ContactGeneral.CompName"
Alias ="ContactName"
Expression ="[dbo_ContactNa... |
10 CLS
20 GOTO 160
25 GUESS = 0
30 LET Y = 0
40 LET X = 0
50 FOR N = 1 TO 4
60 IF A$(N) = B$(N) THEN GOTO 130
70 FOR M = 1 TO 4
80 IF M <> N AND A$(N) = B$(M) THEN GOTO 110
90 NEXT M
100 GOTO 140
110 LET Y = Y + 1
120 GOTO 140
130 LET X = X + 1
140 NEXT N
150 RETURN
160 REM rand
190 FOR N = 1 TO 4
200... |
Attribute VB_Name = "mMacros"
Sub Intro()
If lCountWorkbooks = 0 Then Exit Sub
With Application
.ScreenUpdating = False
.EnableEvents = False
lCalculation = .Calculation
.Calculation = xlCalculationManual
End With
End Sub
Sub OptimiseAppProperties()
If lCountWorkbooks = 0 Then Ex... |
1 REM rocket.bas, adapted to run on tiny basic.
2 REM Origin: https://github.com/coding-horror/basic-computer-games
10 PRINT TAB(30); "ROCKET"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT ""
31 PRINT ""
32 PRINT ""
70 PRINT "LUNAR LANDING SIMULATION"
80 PRINT "----- ------- ----------"
81 PRI... |
Attribute VB_Name = "TJPamod"
Dim Nd%, Nr%
Public Qr#, Hr#
Dim dmn#, dmx#
Public solver_options
Public Mdat(), Fdat() As Double
Dim Edat(), nEdat() As Double
Dim Vdat(), Wdat() As Double
Dim Bdat(), Ddat() As Double
Public cutr, modr As Double
Dim Visc... |
'===========================================================================
' Subject: LIFE CELL EXAMPLE Date: 12-01-95 (11:30)
' Author: Ben Ashley Code: QB, QBasic, PDS
' Origin: alt.lang.basic Packet: DEMOS.ABC
'============================... |
DECLARE SUB instructions ()
DECLARE SUB gamer ()
DECLARE SUB wall1 ()
DECLARE SUB person1 ()
DECLARE SUB goon ()
DECLARE SUB talk ()
DECLARE SUB passem ()
DECLARE SUB passer ()
DECLARE SUB passer2 ()
DECLARE SUB actualgame ()
DECLARE SUB ender ()
DECLARE SUB intructions ()
DECLARE SUB goon2 ()
CLS
SCREEN ... |
10 print"{clear}":v=53248:for s=832 to 895:poke s,255:next
20 for m=2040 to 2042:poke m,13:next
30 poke v+21,7
40 poke v+39,1:poke v+40,7:poke v+41,8
50 poke v,24:poke v+1,50
60 poke v+2,12:poke v+3,229
70 poke v+4,255:poke v+5,50
|
DEF FnNewTime$ (t1$, Op$, t2$)
hour1 = VAL(t1$) 'parse hour values
hour2 = VAL(t2$)
min1 = VAL(MID$(t1$, 4)) 'parse minute values
min2 = VAL(MID$(t2$, 4))
sec1 = VAL(RIGHT$(t1$, 2)) 'parse second values
sec2 = VAL(RIGHT$(t2$, 2))
IF Op$ = "+" THEN ... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
Cycle =1
GridX =24
GridY =24
W... |
10 ! &
! Set up a VT100 to use an LA100 or LA50 printer &
! &
! &
READ HORZ.PITCH%(I%), HORZ.PITCH$(I%) FOR I%=0% TO 7% &
\ READ VERT.PITCH%(I%), VERT.PITCH$(I%) FOR I%=0% TO 6% &
\ DATA 0, 0, 5, 5, 6, 6, 8, 8, 10, 0, 12, 2, 13, 3, 16, 4, &
0, 0, 6, 0, 8, 2, 12, 3, 2, 4, 3, 5, 4, 6 &
20 E... |
REM *************************************************************************
REM
REM TLX PROFILE PROGRAM
REM WRITTEN BY DENTON MARLOWE
REM (C)1988,1989 HAYES TARGETS
REM REVISION V1.1
REM written in microsoft QuickBasic 4.0
REM
REM *******************************************************************... |
100 REM force gosub to fail
110 A = 0
120 PRINT A
130 A = A + 1
140 GOSUB 120
|
REM RECEIVE DATA FROM
REM REMOTE SERVER USING
REM GET REQUEST
FUNCTION REQUEST(ADDRESS AS STRING) AS STRING
DIM RESPONSE AS STRING
OPEN #1,ADDRESS,"r"
READLINE #1,RESPONSE
CLOSE #1
REQUEST = RESPONSE
END FUNCTION
|
DECLARE FUNCTION FUNC! (X!)
SUB TRAPZD (DUM, A, B, S, N) STATIC
IF N = 1 THEN
S = .5 * (B - A) * (FUNC(A) + FUNC(B))
IT = 1
ELSE
TNM = IT
DEL = (B - A) / TNM
X = A + .5 * DEL
SUM = 0!
FOR J = 1 TO IT
SUM = SUM + FUNC(X)
X = X + DEL
NEXT J
S = .5 * (S + (B - A) * SUM / TNM)
I... |
10 LET Z=ASC("Z")
20 PRINT "CHOOSE A CRYPTIC CODE NUMBER"
30 PRINT "BETWEEN 1 AND 25"
40 INPUT S
50 PRINT "TYPE YOUR MESSAGE FOR CODING"
60 INPUT X$
70 PRINT
80 FOR I=1 TO LEN(X$)
90 LET Y$=MID$(X$,I,1)
100 IF Y$<"A" OR Y$>"Z" THEN GOTO 160
110 LET X=ASC(Y$)
120 IF X+S<Z+1 THEN PRINT CHR$(X+S);
130 IF X+S>Z THEN PRINT ... |
10 CLEAR 100
11 CLS
15 PRINT@136,CHR$(34);"GARGOYLE CASTLE";CHR$(34)
30 PRINT@266,"KIT DOMENICO":PRINT@325,"MODIFIED BY CAPTAIN COCO"
105 READ IT:REM THIS IS THE NUMBER OF ITEMS ON THE NOUN LIST
108 DIM NA$(IT),NM$(IT),LO(IT)
110 FOR I=1 TO IT:READ NA$(I),NM$(I),LO(I):NEXT I
120 PL=6:PO=1
160 READ LO
170 DIM CO(LO,6),... |
1 %TITLE "Print Menu Structure"
%SBTTL "UTL_RPRT_PRINTMENU"
%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 incl... |
CLS
DIM inputfilename AS STRING * 12
DIM outputfilename AS STRING * 12
wn = 1000
DIM ii$(1 TO wn)
'openfile
INPUT "Input Filename : "; inputfilename
INPUT "output Filename : "; outputfilename
OPEN inputfilename FOR INPUT AS #1
OPEN outputfilename FOR OUTPUT AS #2
ON ERROR GOTO ooutput
'input ... |
' ---------------------------------------------------------------------------
'
' DQBtools
' version 1.21
'
' by Angelo Mottola - Enhanced Creations 1998-99
'
' This program contains a font editor, a mouse cursor editor and, soon, a
' ... |
10 POKE 53281,0:POKE 53280,14
20 PRINT"{clear}{white} BASIC TETRIS {$b0}{$c3:10}{$ae} {$b0}{$c3:7}{$ae}";
30 PRINT" 2014 {$c2}{black}{rvrs on}{$cc:10}{rvrs off}{white}{$ab}{$c3:5}{$b3} {lt. blue}SCORE{white} {$c2}";
40 PRINT" DAVID MURRAY {$c2}{black}{rvrs on}{$cc:10}{rvrs off}{white}{$c2} {$c2} ... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =2086476849
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =14760
DatasheetFontHeight =11
ItemSuffix =42
... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * CONVERSAO DE *
6 REM * ARABICOS PARA ROMANOS*
7 REM ************************
25 HOME
26 PRINT TAB( 11)"- CCESOFT -": PRINT
30 PRINT TA... |
REM *** FIRST PROGRAM
REM
LET A1 = 1
A2 = 2
A3 = A1 + A2
PRINT "A1=";A1,"A2=";A2,"A3=";A3
END
|
Attribute VB_Name = "MDataBase"
Option Explicit
Public mCnMES As New ADODB.Connection
Public Function mOpenCnMES() As Boolean
Dim strSQL As String
Dim strSite As String
10 On Error GoTo Errorhandle
20 mOpenCnMES = False
30 If mCnMES.State = adStateClos... |
Operation =1
Option =2
Begin InputTables
Name ="qryAnnualCompleteTgtSpeciesLists"
End
Begin OutputColumns
Expression ="qryAnnualCompleteTgtSpeciesLists.TgtYear"
Expression ="qryAnnualCompleteTgtSpeciesLists.Master_Plant_Code_FK"
Expression ="qryAnnualCompleteTgtSpeciesLists.LU_Code"
Expression ="qr... |
' Reads file LABELS-1, and optionally, LABELS-2 through LABELS-9 in the C:\LABELS\ directory
' Files are downloaded from the cpfprint server after being ordered through DISCIS
'
' Prints one label with no command line option, or two labels with command line option '2'
'
' Copyright (c) 2004 Josiah I. Barber (GNU ... |
1 %TITLE "WIP Buyoff Line Journal"
%SBTTL "WP_MAIN_BUYOFFLINE"
%IDENT "V3.6a Calico"
FUNCTION LONG WP_MAIN_BUYOFFLINE(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1991 BY
!
! Computer Management Center
! Idaho Falls, Idaho.
!
! This software is furnis... |
REM Basic program for web diagrams, here instantiated for the Liar
REM Programming elements included here were developed in background research
REM for Patrick Grim, Gary Mar and Paul St. Denis, THE PHILOSOPHICAL COMPUTER:
REM EXPLORATORY ESSAYS IN PHILOSOPHICAL COMPUTER MODELING, Bradford Books/
REM MIT Press. You a... |
1 e=0:ez=0:do=0:printchr$(147):print"1 - dezimalzahl eingeben":print"2 - e-zahl eingeben"
2 input x:on x goto 3,4
3 input "zahl";a:goto 5
4 input "e-zahl";a$:a$=" "+a$:la=len(a$):goto 6
5 a$=str$(a):la=len(a$)
6 fori=1tola:ifmid$(a$,i,1)="e"thene=1:ez=i:v$=mid$(a$,i+1,1):z=val(mid$(a$,i+2,2))
7 next i
8 if e=0 then pri... |
CLS
start:
a$ = INKEY$
IF RIGHT$(a$, 1) = "M" THEN temp$ = "RIGHT": GOTO cool
IF RIGHT$(a$, 1) = "P" THEN temp$ = "DOWN": GOTO cool
IF RIGHT$(a$, 1) = "K" THEN temp$ = "LEFT": GOTO cool
IF RIGHT$(a$, 1) = "H" THEN temp$ = "UP": GOTO cool
IF a$ > CHR$(0) THEN PRINT a$;
IF a$ > CHR$(0) THEN PRINT ASC(a$)
GOTO st... |
SUB PCSHFT (A, B, D(), N)
CONSQ = 2! / (B - A)
FAC = CONSQ
FOR J = 2 TO N
D(J) = D(J) * FAC
FAC = FAC * CONSQ
NEXT J
CONSQ = .5 * (A + B)
FOR J = 1 TO N - 1
FOR K = N - 1 TO J STEP -1
D(K) = D(K) - CONSQ * D(K + 1)
NEXT K
NEXT J
END SUB
|
1 REM WUMPUS 1/28/77
2 REM MODIFIED FOR ALTAIR 4K BASIC 10/01
3 REM RECODED -> CHARACTERS, COMPUTED GOTOS, "OR" STATEMENTS, 2-D ARRAY
4 REM COMPUTED LOGICAL STATEMENTS
10 PRINT"WMP23-HUNT THE WUMPUS"
15 PRINT
20 PRINT "INSTRUCTIONS(1=YES OR 0=NO)";
30 INPUT I
35 REM RANDOMIZE
40 IF I<>1 THEN 70
50 GOSUB 7000... |
1000 GOTO 2000
1010 PRINT "END"
1020 END
2000 PRINT "A"
2010 GOTO 3000
3000 PRINT "B"
3010 GOTO 1010
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.