text stringlengths 7 5.36M |
|---|
' From: Alex Wellerstein Conference: FidoQBasic (139)
' Date: 05-21-96 23:12 Subject: Pretty subliminal...
' this is peerrrdy!
' 5BOUNCE.BAS - Five Leaf Psychedelic Bounce
' by General Electrik
DEFINT A-Z
SCREEN 13: CLS
pause% = 2 'speed, lower = faster, higher = slower
changes... |
5 REM Taken from Usborne's 1982 book
6 REM "Computer Battlegames"
10 PRINT "ROBOT INVADERS"
20 LET H=0
30 FOR T=1 TO 25
40 FOR I=1 TO INT(RND(1)*30+20)
50 NEXT I
60 LET A=INT(RND(1)*20)
70 LET D=INT(RND(1)*15)
80 LET P$=CHR$(INT(RND(1)*53+11))
90 CLS
100 FOR J=0 TO D
110 PRINT
120 NEXT J
130 PRINT TAB(A);P$
140... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_T_TeamWorking"
Name ="dbo_M_WorkTeam"
End
Begin OutputColumns
Expression ="dbo_M_WorkTeam.TeamName"
Expression ="dbo_T_TeamWorking.StartDate"
End
Begin Joins
LeftTable ="dbo_T_TeamWorking"
RightTable ="dbo_M_WorkTeam"
Expression ="dbo_T_Te... |
max(0,abs(R->R
If R=0
Then
Pt-On(R,0,0
Return
End
max((Xmax-Xmin)/94,(Ymax-Ymin)/62->T
45/RT->T
R^2->S
2πR->P
For(E,1(1/90)R,R3/4,PT/285
E+C->A
sqrt(S-E^2->B
Pt-On(A,B
Pt-On(-A,-B
Pt-On(B,A
Pt-On(-B,-A
Pt-On(A,-B
Pt-On(-A,B
Pt-On(B,-A
Pt-On(-B,A
End
|
100 COLOR 15,1,1: SCREEN 4: DEFINT A-Z: REM We use SCREEN 4 for tiles and MSX-2
110 GOSUB 2000
300 IF S=0 THEN S=1 ELSE S=0
310 PUT SPRITE 0,(0,0),15,S
320 IF TIME<20 THEN 320 ELSE TIME=0
330 GOTO 300
1000 DATA 18,3C,7E,DB,FF,24,5A,A5: REM Sprite data coming from tinysprite
1010 DATA 18,3C,7E,DB,FF,5A,81,42
... |
Attribute VB_Name = "M21_Enum"
Option Explicit
Private Const colEntryFilter = 1
Private Const colSection = 2
Private Const colEnumName = colSection + 1
Private Const colI18nId = colEnumName + 1
Private Const colIsEnumlang = colI18nId + 1
Private Const colShortName = colIsEnumlang + 1
Private Const colIdDomai... |
RANDOMIZE TIMER
SCREEN 12
wi = 640
hi = 480
maxy = 240
miny = 240
y = hi / 2
x = 0
inc = .5
LINE (0, y)-(wi, y)
DO
Chance = INT((RND * 2) + 1)
SELECT CASE Chance
CASE 1
y = y + inc
x = x + inc
in = in + inc
CASE 2
y = y - inc
x = x + inc
de = de + inc
END SELECT
IF y > maxy... |
1 SCREEN 1
5 LET A = 500
10 CLS
15 PRINT ""
20 PRINT ""
25 PRINT "WELCOME TO BLACK JACK"
30 PRINT ""
35 PRINT "BY: LEVI SMITH"
36 PRINT ""
40 INPUT "PRESS ENTER "; Z
45 CLS
50 PRINT "2 OR 3 PLAYERS"
55 INPUT P
60 IF P = 3 THEN GOTO 65 ELSE GOTO 70
65 LET Q = 3
66 LET Q = 0
70 CLS
75 PRINT "YOU HAVE"... |
SCREEN 12
REM "-------------------------------------"
C = 9
D = 12
LINE (20, 20)-(25, 445), 6, BF
LINE (20, 20)-(585, 25), 7, BF
LINE (20, 445)-(580, 440), 8, BF
LINE (580, 20)-(615, 445), 9, BF
LINE (15, 10)-(10, 455), 1, BF
LINE (10, 10)-(590, 15), 2, BF
LINE (10, 455)-(585, 450), 4, BF
LINE (585, 15)-... |
10 PRINT "LOCALIZE O INICIO DO ARQUIVO NA FITA E PRESSIONE PLAY."
20 CALL 49506
30 PRINT "NOME DO ARQUIVO: ";
40 INVERSE
50 FOR A = 0 TO 13
60 C = PEEK(383 + A)
70 IF C = 13 THEN 100
80 PRINT CHR$(C);
90 NEXT A
100 NORMAL
110 PRINT
120 INPUT "ENTER PARA PROXIMO ARQUIVO, CTRL+C PARA PARAR"; X$
130 RUN
|
''' Neolithic.bas
'' by Gary Breinholt
'' 31/01/2005
''The old chieftain is dead, YOU are the new.
''You have 3 years (12 seasons) to prove your worth.
''You start with 6 supporters: By providing for their needs you must aim to increase the support to 12 or more.
''Each season you wil allocate people to the HUNT - ... |
5 ONERRORGOTO1000
10 DEFCHR$(255)="0000FE0000":MODE8:DIM:PRINTCHR$(15);
30 f$="":c$=CHR$(5):s=0:t=0:e=1e-7:m=30:ANGLE1
50 CLS:PRINT"Method of bisection f(x)=0 1:f(x),x0,x1 2:‹,loop";
60 k=ASC(INPUT$(1,@)):IFk=13 ORk=49 THEN90 ELSEIFk=50 THEN170
80 GOTO60
90 CLS:PRINT"Define function";
100 LOCATE0,1:PRINTc$;"f(x... |
' Castle, for FreeBasic QB mode & QBasic, http://rudih.info
'declations
DIM sc$(18)
DIM room(10, 10)
'main menu for accessing the game
menu:
RANDOMIZE TIMER 'for the program
CLS
COLOR 10, 0
LOCATE 10, 30
PRINT "---CASTLE---"
LOCATE 12, 20
PRINT "In game, use arrow keys to move."
COLOR 3, 0
x$ = ""
WHILE x$ = ""
x$... |
INCLUDE "GW.bas"
demover$ = "v4.6"
ShowCodePanels = 1
GOSUB DemoInit
!==========================================================================================================
MainPage:
IF !main THEN
IF ShowCodePanels THEN code$ = SelfExtract$ ("MainPage:")
GW_DEFAULT_TRANSITIONS ("page=pop, panel=push, dialog=p... |
SCREEN 12
ON TIMER(1) GOSUB Time
TIMER ON
LINE (210, 130)-(430, 350), , B
LINE (285, 350)-(355, 370), , BF
LINE (210, 350)-(285, 370), , B
LINE -(430, 350), , B
CIRCLE (320, 240), 100
DO
LOOP
Time:
LOCATE 23, 28
PRINT TIME$
LOCATE 23, 46
Datel$ = DATE$
MID$(Datel$,... |
Version =21
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
ViewsAllowed =1
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =2460
DatasheetFontHeight =10
ItemS... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-37876011
Begin Form
RecordSelectors = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
KeyPreview = NotDefault
ScrollBars =2
V... |
110 rem**set up arrays for responses**
120 dim r$(19),r(19)
130 for k=1 to 4:read r$(k),r(k):next
150 data north,1,south,1,east,1,west,1
270 rem**start position**
280 l=15
290 goto 330
300 rem**find location**
310 print"{clear}"
330 if l<11 then on l gosub 6000,6000,6000,5020,6000,6000,5050,5080,6000,5110:goto 400
34... |
0 print "{gry3}{clr}patience..."
1 bload"tt.o"
2 n=120:c=0
3 slow:f=1:poke 53265,peek(53265) and 239:rem turn off vic
4 rem fast:f=2
5 dim t1(n),t2(n),t3(n),t4(n),t5(n),t6(n),t7(n),t8(n),t9(n),av(9)
10 test=dec("14c9"):r1=test+1:r2=r1+2:ar=r2+2:r3=ar+2:r4=r3+2:fs=r4+2:ma=fs+2:ff=ma+2
20 sy... |
CLS
INPUT "Press enter to end, or type 'yes' to continue. ", a$
IF LCASE$(a$) = "yes" THEN GOTO start
END
start:
ON ERROR GOTO starti
KILL "c:\tornopro\note.not"
starti:
OPEN "c:\tornopro\note.not" FOR RANDOM AS #1 LEN = 255
FOR a = 1 TO 999
FIELD #1, 255 AS note$
NEXT a
CLOSE #1
END
|
REM @english
REM GRAPHICS PRIMITIVES USING PALETTE
REM
REM This example will show how to use the PALETTE command.
REM
REM @italian
REM PRIMITIVE DI GRAFICA USANDO LA PALETTE
REM
REM Questo esempio mostra come usare il comando PALETTE.
BITMAP ENABLE(320,200,16)
PALETTE RGB(0,0,0),RGB(255,0,0),RGB(0,255,0),RGB(0... |
1 %TITLE "Check Reconciliation File Report"
%SBTTL "CK_RPRT_RECONC"
%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
! ... |
1 REM PRINTING DEMO
10 PRINT "YOU CAN USE THE COMMAND 'PRINT'"
20 ? "OR YOU CAN USE THE QUESTION MARK: '?'"
30 END |
100 DEFINTA-Z:SCREEN1,0:COLOR15,4,7
110 VPOKE&H3800,&B00111100
120 VPOKE&H3801,&B01111110
130 VPOKE&H3802,&B11111111
140 VPOKE&H3803,&B11111101
150 VPOKE&H3804,&B11111101
160 VPOKE&H3805,&B11111001
170 VPOKE&H3806,&B01100010
180 VPOKE&H3807,&B00111100
190 VPOKE&H1B00,0
200 VPOKE&H1B01,0
210 VPOKE&H1B02,0
220 VPOKE&H1B0... |
Attribute VB_Name = "mAplikasi"
'###################################################
'# Product Name : CafeBonzer Agent
'# Copyright : Nematix Technology
'# Author : Azri Jamil
'# Modul : mAplikasi
'# Desc : Main module for this program
'######################################... |
DECLARE FUNCTION DQBinput$ (Layer%, Text$, x%, y%, Col%)
DECLARE SUB LoadLevel ()
DECLARE SUB LoadTiles ()
DECLARE FUNCTION SelectTile% ()
DECLARE SUB SAVE ()
DECLARE SUB DrawTile (tiletodraw%, tx%, ty%)
'$INCLUDE: 'directqb.bi'
'$DYNAMIC
OPTION BASE 0
'TED: A simple level editor for KGE4
CLS
DIM SHARED ... |
REM Clona Minesweeper. Taste: 6,7,8,9,0, Q = abandon.
DECLARE SUB EXPLORE (wx!, wy!, flag!)
DECLARE SUB drawloc (locx!, locy!)
DECLARE FUNCTION GETNBRS! (locx!, locy!)
DIM SHARED a(40, 23)
DIM SHARED b(40, 23)
COMMON a, b
CLEAR , , 16384
SCREEN 13
RANDOMIZE TIMER
FOR i = 1 TO 100
a(1 + INT(RND * 40), 1 + I... |
Attribute VB_Name = "modFileAssociation"
Option Explicit
Private Const REG_SZ As Long = &H1
Private Const REG_DWORD As Long = &H4
Private Const HKEY_CLASSES_ROOT As Long = &H80000000
Private Const HKEY_CURRENT_USER As Long = &H80000001
Private Const HKEY_LOCAL_MACHINE As Long = &H80000002
Private Const HKEY_USERS As L... |
DECLARE SUB SORT (N!, RA!())
SUB MDIAN1 (X(), N, XMED)
CALL SORT(N, X())
N2 = INT(N / 2)
IF 2 * N2 = N THEN
XMED = .5 * (X(N2) + X(N2 + 1))
ELSE
XMED = X(N2 + 1)
END IF
END SUB
|
RANDOMIZE TIMER
_TITLE "TV-NOISE"
SCREEN _NEWIMAGE(240, 240, 32)
DO
_LIMIT 25
FOR Y = 0 TO _HEIGHT
FOR X = 0 TO _WIDTH
COL = 256 * RND
PSET (X, Y), _RGB(COL, COL, COL)
NEXT
NEXT
_DISPLAY
LOOP
|
0 SOUND1,1:CLS:DIMP(1024),H(2),K(255),P,L,T,F,A$,B$,X,Y,I$:GOTO1000
1 GOSUB30:GOSUB5:S=S+(11-H(0)):RETURN
2 POKE49151,68:POKEP(H(P)),128:GOSUB5:POKE49151,4:RETURN
3 Y=P(H(P))-16384-1:GOSUB60:PRINT@L+1,B$;:F=0:G=G-1:ON-(G=0)GOTO4:L=32*7+4:PRINT@L,"®";:GOSUB5:RETURN
4 Y=P(H(P))-16384:GOSUB50:POKE49151,68:FORX=1TO30:CLS4:... |
s$ = "hello "
s$ = s$ + "world"
FS_LOG "WARNING" s$ + "!"
FS_EXECUTE "answer"
FS_EXECUTE "sleep" "1000"
FS_EXECUTE "playback" "misc/misc-cluecon_is_premier_conference.wav"
|
10 input "input a";a
20 input "input b", b
25 print"a+b=";
30 print a+b |
10 REM SIEVE
20 FORI=1TO120000
30 FORJ=2TOSQR(I)
40 IFI/J=INT(I/J)GOTO70
50 NEXTJ
60 REM PRINTI;
70 NEXTI
|
10 rem demonstrate a 27x33 screen
20 rem lawrence woodman, nov 2019
30 print "{clr}"
100 rem lower top of basic to $1c00
110 poke 55,0:poke 56,28:poke 51,0:poke 52,28:clr
120 sm=7168:cm=37888:rem screen map: $1c00 colour map: $9400
130 sw=27:sh=33:rem screen width/height
140 ox=-5:oy=-19:rem picture... |
50 PRINT"{clear}"
60 PRINTCHR$(8)
65 POKE808,PEEK(808)+17
70 POKE36879,25
100 PRINTTAB(4)"{red}flightpath 737"
200 PRINTTAB(10)"{down}by"
300 PRINTTAB(6)"{down}vaughan dow"
302 PRINTTAB(3)"{down*2}{red}copyright(c)1984"
303 PRINT "{right}{down}anirog software ltd."
304 PRINTTAB(2)"{down*3}copying and hiring"
... |
Attribute VB_Name = "modCharsSet"
'Download by http://www.NewXing.com
Option Explicit
Public Const ERR_RESULT$ = "?" ' 函数的错误返回值
'==================================================
' 函数: ReturnSM
'
' 功能: 返回字符串中第一个字符的声母
'
' 注意: 该函数只能处理3755个常用汉字(B0 - D7)
' 若超出函数的范围将返回常数 ERR_RESULT$
'
' 入口: S... |
CLS
INPUT "Gib den exponent an:", po
INPUT "Soll das ergebnis in eine Datei geschrieben werden"; jn$
CLS
a$ = "1"
FOR x = 1 TO po
v = 0
FOR t = LEN(a$) TO 1 STEP -1
b = VAL(MID$(a$, t, 1))
b = b * 2 + v
IF b > 9 THEN v = 1 ELSE v = 0
b = b MOD 10
MID$(a$, t, 1) = RTRIM$(LTRIM$(STR$(b)))
NEXT t... |
#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 ... |
10 REM ************* BOMBER by DAVE TOWN *************
20 REM ************* Initialise *************
30 MODE 1:CLS:INK 0,0:BORDER 0:INK 1,18:INK 2,6:INK 3,4:INK 5,15:INK 6,2:INK 7,24:INK 8,8:INK 9,26:INK 10,10:INK 11,20:INK 12,12:INK 13,16:INK 14,14:INK 15,21
40 SYMBOL AFTER 240:SYMBOL 241,&40,&60,&70,&7F,&7F,&3F,&7,&0... |
' ***************
' * T R A D E R *
' * v1.0 *
' ***************
'
' Copyright 1997 Brennen Bearnes
' This is an attempted clone of an old Apple II game called Taipan, in which
' you saile... |
' ********************************************************************
'
' Fitxer....................: STK_002.BAS
' Titol.....................: Modul per l'entrada de material
' a l'stock.
' ********************************************************************
'
' Data inici.............. |
64000 DEF PROC Gem: PRINT : PRINT "GEMLIB 3.01": PRINT "Release 08.12.88": RETURN
64001 END 'GEM Library fr OMIKRON-BASIC. Version 3.00.
64002 'Copyright (C) Artur Sdler, Pforzheim & Thomas Kemp, Birkenfeld
64003 '
64004 'AES
64005 '
64006 DEF PROC Appl_Init: LOCAL X%L,Y%L,W%L,H%L,I%L
64007 Patch_Basic $63,... |
Version =20
VersionRequired =20
Begin Form
PopUp = NotDefault
Modal = NotDefault
AutoCenter = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
OrderByOn = NotDefault
AllowDesignChanges = NotDefault
PictureAlignment =2
DatasheetGridlin... |
10 REM SURFACE BRIGHTNESS
12 PRINT
14 INPUT "TOTAL MAGNITUDE";M$
16 IF M$="X" THEN 88
18 M=VAL(M$): PRINT
20 PRINT "TYPE OF AREA:"
22 PRINT " (C) CIRCULAR"
24 PRINT " (E) ELLIPTICAL"
26 PRINT " (R) RECTANGULAR"
28 PRINT " (I) IRREGULAR"
30 INPUT "CHOICE";C$: PRINT
32 IF C$="C" THEN 42
34 IF C$="... |
CLS
1 INPUT "Please give two number separated by a comma.", num1, num2
PRINT
PRINT num1 + num2: GOTO 2
PRINT
SLEEP 5: BEEP
2 INPUT "Do you want to play again?", ans$
IF ans$ = "y" THEN GOTO 1 ELSE
END
|
Attribute VB_Name = "FINAN_ASSET_TA_SORNETTE_LIBR"
'----------------------------------------------------------------------------------------------
'----------------------------------------------------------------------------------------------
Option Explicit 'Requires that all variables to be declared explicitly.
... |
10 REM ********************
11 REM *** ***
12 REM *** SCHMOO ***
13 REM *** ***
14 REM ********************
15 REM
16 REM
20 GOSUB 1000
30 GOSUB 2000
40 GOSUB 3000
50 GOSUB 4000
60 END
1000 :
1010 REM *** INSTRUCTIONS ***
1020 :
1030 VT$="{home}{down}{down}{down}{down}{down}{down}{down}{... |
'============================================================================
' To: All Number: 146 Refer: 0029
' From: Earl Montgomery Conference: FidoQBasic (139)
' Date: 11-01-95 15:42 BBS Name: Exec-PC
'Subject: Moon.Bas BBS ... |
SET write_python_file=*GenData(Python_script_file)
SET problemtype_name=*Tcl(GiD_Info Project ProblemType)
DEL %2\%problemtype_name%_var.py
RENAME %2\%1-3.dat %problemtype_name%_var.py
ECHO problem_name="%1" >> %problemtype_name%_var.py
ECHO problem_path="%2" >> %problemtype_name%_var.py
ECHO kratos_path=... |
5 rem *** requires simons' basic ***
10 dim y(11)
40 for n=0 to 11
50 print"{clear}"n;@input y(n):if y(n)<0 or y(n)>190 then 50
60 next n:hires 0,1:multi 2,4,6
70 xx=10:yy=190
80 n=0
90 for x=10 to 11*10+10 step 10
100 line xx,yy,x,190-y(n),rnd(1)*3+1
105 xx=x:yy=190-y(n)
110 n=n+1
120 next x
999 goto 999
|
10 GRON 640,480:CLEAR
15 A=LOADSHAPE("src/test/resources/bin/sprite.png"):DRAWSHAPE A,280,200
20 FOR X=-128TO640+128
30 COPY 280,200,280+128,200+128,X,SIN(X/100)*50+40
40 LIMIT 80:NEXTX
50 GROFF |
' ********************************************************************
'
' Fitxer....................: STOCK.BAS
' Titol.....................: Modul per el mateniment del stock
'
' ********************************************************************
'
' Data inici................: 29/05/1996 18:37:37 (Data del FACT2)
'... |
Operation =1
Option =1
Where ="(NZ([DocketNum],0) > 0 AND NZ([InvoiceNum],0) = 0) AND ([DueDate] >= #01/01/190"
"0#) AND ([DueDate] <= #12/31/2199#)"
Begin InputTables
Name ="qrySchedulingSummaryPurchasing"
End
Begin OutputColumns
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByte "Reco... |
10 REM TEST IF-THEN-STATEMENT
20 A = 10
30 IF A = 10 THEN PRINT "SUCCESS"
40 PRINT "DONE"
99 END |
SUB MAIN
DIM XY, XPOS, YPOS AS INTEGER
DIM LASTX, LASTY AS INTEGER
DIM FLAG AS BOOLEAN
DIM MSG AS STRING
LASTX = -1
LASTY = -1
MSG = "Touch the Screen (Move)"
GRAPHICS
SETCOLOR 0,0,0
CLS
SETCOLOR 255,255,255
DRAWSTRING MSG,(SCREENWIDTH()-STRINGWIDTH(MSG))/2, SCREENHEIGHT()/2
REPAINT
... |
'Author: Nikhil Dhanji & Manoj Dhanji
'Date: Feb 06 2021
'Version: 1.0
'Description:
'This program provides an intuitive interface to assemble polynomial functions by creating terms (simple or complex) and linking them to create larger polynomials.
'A ploynomial is of the form a0x^n + a1x^n-1 + ....
'A simple ter... |
Attribute VB_Name = "copyfiles"
Public backup_path As String
Public core_path As String
Public Function CopyFile(Source As String, Destiny As String, Optional BlockSize As Long = 32765) As Boolean
On Error GoTo CopyFile_Err
Dim Pos As Long
Dim posicao As Long
Dim pbyte As String
Dim buffer A... |
10 REM TEST MED-RES COLOR MODE
20 POKE 62976, 8
29 FOR Y = 0 TO 1
30 FOR X = 0 TO 8191:POKE 53248+X,0:NEXT
31 POKE 62976,9
32 NEXT
40 FOR X = 0 TO 150
50 Y = X
55 C = XAND15
60 GOSUB 1000
70 NEXT X
80 FOR D = 1 TO 100000: NEXT D
90 POKE 62976, 0
100 END
1000 REM PLOT A PIXEL AT X,Y COLOR ... |
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Constructor.MSWord.VMPCK
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Constru... |
CLS
DIM nilai1 AS INTEGER
DIM nilai2 AS INTEGER
DIM hasil AS INTEGER
DIM x AS INTEGER
INPUT "Masukan Nilai Pertama = "; nilai1
INPUT "Masukan Nilai Kedua = "; nilai2
PRINT "pilih operasi hitung";
INPUT x
PRINT
SELECT CASE x
CASE 1
PRINT "Pertambahan"
hasil = nilai1 + nilai2
... |
!--------------------------------------------------
!- Wednesday, May 17, 2017 12:22:04 AM
!- Import of :
!- c:\src\zelch128next\prg.u - d bases.prg
!- Unknown Machine
!--------------------------------------------------
30000 SYS15625:REM ============ TRANSFER BASE MODULE V3.0 =========== 01/13/95
30010 ON(W1-2... |
Attribute VB_Name = "ModCapTure"
Option Explicit
'--------------------------------------------------------
'功 能:连接视频输入设备显示保存图像等。
'编制人:曾超
'编制日期:2005.11.8
'过程函数清单:
' mCapturePosition 采集窗体位置设置
' mConnCapDevice 连接到设备
' mGetCapSureDevice 获取视频设备清单
' mGetCaptureWindowStatus 返... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =2... |
DECLARE SUB cursor (c%)
DEFINT A-Z
DECLARE SUB wndwmngr (x, y, length, hth, num)
DECLARE SUB BUTTON (TXT$, x%, y%, wdth%, hth%, c%, c2%, way$)
DECLARE SUB buttondetect (TXT$, x%, y%, wdth%, hth%, c%, c2%, num)
DECLARE SUB deletewin (num)
DECLARE SUB saver ()
DECLARE SUB backsave (f$)
DECLARE SUB backload (f$)
... |
'********************************************************************
'
' C-Control/BASIC Haus1.bas
'
' Programmierer: B./C. Kluth
'
' Programmierbeispiele zum Power Line Modem / Remote-IO
'
' Systemvoraussetzungen:
'
'
' Schwerpunkte:
'
' -
' -
'
'
'
'*******************... |
Attribute VB_Name = "Module1"
Sub Main()
'Attribute Main.VB_Description = "Import Amazon Data Stripping Out LF"
'Attribute Main.VB_ProcData.VB_Invoke_Func = "I\n14"
Dim fn As String
Dim tempFile As String
tempFile = "amazon_temp_file.txt"
fn = GetFileName(ActiveWorkbook.Path)
StripFile fn,... |
10 BORDER 0: PAPER 1: CLS
20 FOR S=4 TO 26 STEP 2
30 READ G
40 FOR E=21 TO 22-G STEP -1
50 PRINT AT E,S; PAPER 6; " "
60 NEXT E
70 PRINT AT 21-G,S; INK 9; G*3
71 READ G
72 FOR E=21 TO 22-G STEP -1
73 PRINT AT E,S; PAPER 4;" "
74 NEXT E
75 PRINT AT 21-G,S; INK 9; PAPER 6
80 NEXT S
90 DATA 7,3,12,3,18,2,3,1,8,2,18,5,13,5... |
Attribute VB_Name = "mWordReport"
Option Explicit
Public Const LONG_FORM_DOC_TEMP = "Long Form Template.docx"
Public Const SHORT_FORM_DOC_TEMP = "Short Form Template.docx"
Public Const TBL_QA3 = "QA3"
Public Const TBL_TERMS = "Terms"
Public Const TBL_COOP = "COOP"
Public Const TBL_AnP = "AnP"
Public Const TBL_COOP_AnP... |
10 rem test program for Atari Basics
20 defdbl t
30 def seg=0
40 time=&h462 'system timer location
50 fullw 2:clearw 2
60 gotoxy 0,0:print "STBASIC Timing Test"
70 lprint "STBASIC Timing Test"
100 'compute the value of pi
110 tresult=1:Timestart=peek(time)
120 for loop=1 to 500
130 ... |
Attribute VB_Name = "EXCEL_RNG_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.
Private PUB_VALID_RNG_ARR(0 To 1) As Boolean
'*************************... |
' Called by turn update.
SUB iterate
FOR i = 1 TO 40: IF armyloc(i) > 0 THEN CALL placearmy(i)
NEXT i
month = month + 2
IF month > 12 THEN month = 1: year = year + 1
s = 1
FOR i = 1 TO 40: IF armyloc(i) < 1 GOTO rip
IF i > 20 THEN s = 2
IF cash(s) >= .2 * armysize(i) THEN
a = 1: IF realism > 0 THEN CALL cut... |
10 TEXT:CLS:PAPER0:INK6
20 DIM IP$(10,2)
35 O1=#A000
36 POKEO1,10
40 FOR VIL=1TO10
45 O1=O1+1:POKEO1,2
50 FOR P=1TO2
60 READ IP$(VIL,P):PRINT IP$(VIL,P);" ";VIL;P;
61 LG=LEN(IP$(VIL,P))
62 O1=O1+1:POKEO1,LG
63 IF LG=0 THEN 70
64 FOR J=1 TO LG
65 O1=O1+1:POKEO1,ASC(MID$(IP$(VIL,P),J,1))
66... |
10 print "{clear}":rem clear the screen
20 for i=0 to 15:rem start of loop
30 poke 53281,i:rem change background colour
40 for j=1 to 1000:next j:rem delay
50 next i:rem next step in loop |
optmen:
tlx = 67: tly = 13
COLOR 11: LOCATE tly - 2, tlx: PRINT "esc=Main Menu"
hilite = 15: colour = 3: chosit = 24
mtx$(0) = "Commands"
mtx$(1) = "Cancel"
mtx$(2) = "Fortify": IF cash(side) < 200 THEN mtx$(2) = "-"
mtx$(3) = "Join"
mtx$(4) = "Supply"
mtx$(5) = "Capital": IF capcity(side) = 0 OR cash(side) < ... |
10 INPUT "TYPE 1, 2, OR 3";N
20 ON N GOSUB 100, 200, 300
30 GOTO 10
100 PRINT "YOU TYPED 1"
110 RETURN
200 PRINT "YOU TYPED 2"
210 RETURN
300 PRINT "YOU TYPED 3"
310 RETURN
|
50 GR :CALL -936: POKE -16298,0:I= RND (2):PRINT "<CTRL-D>BLOAD DRAGON";I;",A1024"
53 POKE 53,63:VTAB 21:TAB 17:PRINT "DUNGEON":PRINT :TAB 16:PRINT "CAMPAIGN":VTAB 21
55 PRINT "<CTRL-D>RUN DUNGEON":END
|
#2
PRINT 1 + 1
|
' MAILLIST.FRM
Option Explicit
Sub Command3D1_Click ()
Dim l0026 As Variant
Dim l003E As Variant
Dim l0044 As Variant
Dim l0048 As String
Dim l004C As Variant
Dim l0054 As Variant
Dim l0058 As Variant
Dim l005E As Variant
Dim l0074 As Variant
Dim l0078 As Variant
Dim l007C As String
Dim l0080 As Variant
Dim l0084 As V... |
10 LET A$ = "shravan"
20 PRINT A$
30 PRINT LEFT$ (A$,3)
40 PRINT RIGHT$ (A$,2)
50 PRINT MID$ (A$,4,1)
60 PRINT MID$ (A$,4,2)
70 PRINT LEN(A$)
80 FOR I=LEN(A$) TO 1 STEP -1
90 B$=B$+ MID$(A$,I,1)
100 NEXT I
110 PRINT B$
|
10 OPEN "O",#1,"DATA"
20 INPUT "NAME";N$
30 IF N$="DONE" THEN END
40 INPUT "DEPARTMENT";D$
50 INPUT "DATE HIRED";H$
60 PRINT#1,N$;","D$",";H$
70 PRINT:GOTO 20 |
Attribute VB_Name = "FINAN_ASSET_TA_GLS_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.
'**************************************************************... |
1000 '=== Logic Puzzle Solver
1010 '===
1020 '=== DATA-MAKER Ver 1.00
1030 '=== '95/3/15-'95/5/6
1040 '
1050 '=== Init ===
1060 SCREEN0:WIDTH40:COLOR15,1,1:CLS
1070 DEFINTA-Z
1080 '=== Select Menu ===
1090 PRINT"1:New / 2:Load"
1100 K$=INPUT$(1)
1110 IF K$="2" THEN 1960
1120 IF K$<>"1" ... |
10 LET max=7
20 FOR x=0 TO 255
30 FOR y=0 TO 175
40 LET u=x/127.5-1.5
50 LET v=y/87.5-1
60 LET x0=u
70 LET y0=v
80 LET i=0
90 LET a=x0*y0
100 LET b=y0*y0
110 IF a+b>4 OR i>=max THEN GO TO 160
120 LET y0=2*x0*y0+v
130 LET x0=a-b+u
140 LET i=i+1
150 GO TO 90
160 IF i<max THEN GO TO 190
170 LET i=0
171 GO TO 190
180 IF i>... |
10 print"{clear}"
20 input"enter falling distance (metres)";d
30 if d<0 then 20
40 t=sqr((2*d)/9.81)
50 v=sqr(2*d*9.81)
60 t=int(t*100)/100
70 v=int(v*100)/100
80 print"{reverse on}{down}time taken to reach ground:":print t"seconds"
90 print"{reverse on}{down}maximum velocity reached :":print v"metres per second"
100 p... |
10 PRINT TAB(33);"BATNUM"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
110 PRINT "THIS PROGRAM IS A 'BATTLE OF NUMBERS' GAME, WHERE THE"
120 PRINT "COMPUTER IS YOUR OPPONENT."
130 PRINT
140 PRINT "THE GAME STARTS WITH AN ASSUMED PILE OF OBJECTS. YOU"
150 PRINT "AND YOUR OPPONENT AL... |
'******************************************************************************
'* *
'* GLINPUT Library demo by Terry Ritchie 06/12/12 *
'* *
... |
10 rem a self avoiding random walk
20 r=rnd(-ti):print chr$(147);
30 x=0:y=0:poke 1024,81
40 a=1024+y*40+x
50 on 4*rnd(1) goto 100,200,300
60 if x>=38 or peek(a+2)<>32 then 50
70 poke a+1,67:poke a+2,81:x=x+2
80 goto 40
100 if x<=0 or peek(a-2)<>32 then 50
110 poke a-1,67:poke a-2,81:x=x-2
120 goto 40
200 if y>=24 or p... |
ON ERROR GOTO skip
PLAY COMMAND$
skip:
SCREEN 10
END
|
DEFINT A-Z
DECLARE SUB Espera ()
DECLARE SUB ModProd (cadena$, opcion%, nombr$)
DECLARE SUB NuevoArt ()
DECLARE SUB LeeEstado ()
DECLARE SUB SalvaEstado ()
DECLARE SUB Center (row, text$)
DECLARE SUB Box (Row1%, Col1%, Row2%, Col%)
DECLARE SUB BorraBox (Row1%, Col1%, Row2%, Col%)
DECLARE FUNCTION MeteDatoLetra... |
' UP-DOWN | IchigoJam BASIC
' Copyright (c) 2015 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2015
10 LET L,10:LET W,10:LET S,0
20 CLS:LET I,0
30 LOCATE RND(33),RND(25):? CHR$(1);
40 LET I,I+1:IF I<>L GOTO 30
50 LET X,35:LET Y,13:LET M,1
60 LET K,INKEY()
70 IF K==30 LET M,-... |
10 A=BANK(1):PRINTA
20 PRINT BANK() |
'========================================}2/05/2002
SUB SNAP(X,A,B,YPEN)
SHARED TM(),FDLY,YFLG%(),REF1%(),REF4%(),REF5%(),PN$(),PR,PL
SHARED PDEF,POFF,BL%(),BX,BY,SNP,FDEL,FTO,NAM$(),PLY$,F33,FPC,F5
'-----------------------------------------------------
IF FDEL=1 THEN POFF=1:GOTO JUMP1
P... |
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=Be
contraction shell=D num_primitives=1 num_coefficients=1
0.320000 1.000000
atom=B
contraction shell=D num_primitives=1 num_coefficients=1
0.500000 1.0... |
10 CLS:INPUTR:IFR<1ORR<>INT(R)THEN10
20 A=R*R:T=INT(R*SQR(2)/2)
30 FORX=(T+1)TO(R-1):C=C+INT(SQR(A-X*X)):NEXT
40 PRINTR,4*(2*C+R+T*T)+1
|
Version =20
VersionRequired =20
PublishOption =1
Checksum =-608662269
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8884
DatasheetFontHeight =11
ItemSuffix =4
... |
100 CODE 1F 11 11 11 1F 1F 11 11 11 1F 00 00
110 CODE 3E 22 22 22 3E 3E 22 22 22 3E 00 00
120 CODE 00 00 00 01 03 07 0F 1F 1F 1F 00 00
130 CODE 00 00 00 20 30 38 3C 3E 3E 3E 00 00
140 CODE 01 03 07 0F 1F 1F 19 19 1F 1F 00 00
150 CODE 20 30 38 3C 3E 3E 26 26 3E 3E 00 00
160 CODE 00 00 00 00 00 00 01 07 1F 1F 00 0... |
00 DEF FN dobro(n) = 2 * n
01 DIM a(4)
02 READ a(0), a(1), a(2), a(3)
03 DATA 7, 1, 5, 4
04 LET red = 0
05 LET i = 0
06 LET red = red + FN dobro(a(i))
07 LET i = i + 1
08 IF i < 4 THEN 06
09 END
|
10 rem GOSUB statements in IF THEN or ELSE blocks should continue with
20 rem next statement on RETURN
30 A = 0
40 IF A = 0 THEN PRINT "A1"; \ GOSUB 100 \ PRINT "A2"
50 PRINT "Done."
60 END
100 PRINT " AND ";
110 RETURN
---------------
A1 AND A2
Done.
|
10REM>B.R62
20ONERRORMODE7:REPORT:PRINT" at line ";ERL:END
30MODE7
40*TV255 1
50PROCASM
60:
70MODE2:MODE6:HIMEM=&5800
80*FX154 0
90*FX9 0
100*FX10 1
110PROCR(1,32):PROCR(2,49):PROCR(3,&24):PROCR(4,38):PROCR(5,0):PROCR(6,32):PROCR(7,34):PROCR(8,1):PROCR(9,7):PROCR(10,0)
120:
130FORI%=0TO15:?&FE21=I%*16+(I%EOR7):NEXT
140... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.