text stringlengths 7 5.36M |
|---|
REM *****************************************************************************************
REM
REM File description:
REM
REM Author: Joao Costa
REM Purpose: YAM language example
REM
REM *****************************************************************************************
PRINT "Hello World"
END
|
10 PRINT "Starting Mode 1"
20 OUT 0,0
30 REG = 17
40 MEM = 16
50 BG = &hc
60 FG = &hF
70 P = BG + (FG * 16)
100 DATA 0, 226, 5, 128, 1, 32, 0, 12
110 FOR I = 0 TO 7
120 READ V
130 OUT REG, V
140 OUT REG, ( I OR &H80 )
150 NEXT
200 REM clear all the sprite attributes
210 A=&h1000
220 GOSUB 900
230 FOR A = 0 TO 32*4
... |
10 REM TEST STRING TYPE
20 A$="A":B$="B":C$=3%:D$=12345
80 PRINT A$
82 PRINT B$
84 PRINT C$
86 PRINT D$
99 END
|
SCREEN 13
WINDOW (0, 0)-(100, 100)
REM *** M.A. de Ruyterstraat 5, 4695 EL Sint-Maartensdijk, 01666-3745.
REM *** Draadfiguur kubus die om z'n as draait. Bekijk de figuur met een
REM *** zgn. 3D-bril, rood en groen glas. Door Erik van Zijst.
REM *** Draag de bril met het rode glas links en het groene rechts.
LOCA... |
ON ERROR GOTO e
DIM st(9) AS STRING * 1
CLS
PRINT "KI - TicTacToe"
INPUT "Name"; name$
er = 0
OPEN name$ + ".ki" FOR INPUT AS #1
CLOSE
IF er = 1 THEN
INPUT "Soll eine neue datei erstellt werden(j/n)"; jn$
IF jn$ = "j" THEN
OPEN name$ + ".ki" FOR OUTPUT AS #1
CLOSE
ELSE
END
END IF
END IF
'OP... |
/*
Marketplace Smart Contract in DVM-BASIC
Version: 0.1
Development date: Q1 2019 for the DERO Stargate Testnet v3.0.4-0
Author: Peppinux
License: MIT
Built for the Dero Smart Contract build competition.
DISCLAIMER: This software was only developed for and tested by the author on the blockchain testnet i... |
' P.V. 19.X.88
PLAY "t120l16"
GOTO 148
100
PLAY ""
|
\********************************************************************
\*** Space and Range Planogram Pending Item database (SRITP)
\*** Version A Neil Bennett 11.07.2006
\***
\....................................................................
INTEGER*2 GLOBAL \
... |
Attribute VB_Name = "setment"
Option Explicit
Type input_wenti_data0
wenti_type As Integer
wenti_point(8) As Integer
End Type
Public temp_input_wenti_data(1 To 4) As input_wenti_data0 '用于记录临时输入语句,用于平行垂直,圆的切线
Public last_temp_input_wenti As Integer '
Public display_add_condition(10) As Integer '
Public Function set_dis... |
10 C0=0:C1=1:C2=2:C3=3:C4=4:C5=5:C6=6:C7=7:C8=8:C9=9
20 SC=1024:LL=40
30 DIMA(19,11),B(19,11)
40 A$(1)="north":A$(2)="east":A$(3)="south":A$(4)="west"
50 W$="{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}{cm e}{cm r}"
60 SP$="{space*4... |
REM Universal World Profile Editor v1.4
REM Public Domain 1997 Jim Vassilakos
REM San Bernardino, California
REM jimv@empirenet.com
REM Usage = uwpedit <subsector file> <hex#>
DIM excode$(2, 34)
DIM extech(34)
DIM exetc$(34)
DIM tccode$(15)
DIM tc(15)
DIM fixed$(21)
DIM fixloc(21)
DIM basalg$(2, 50, 2... |
10 FOR I = 1 TO 3
20 READ P(I)
30 NEXT I
40 FOR I = 1 TO 3
50 FOR J = 1 TO 5
60 READ S(I, J)
70 NEXT J
80 NEXT I
90 FOR J = 1 TO 5
100 LET S = 0
110 FOR I = 1 TO 3
120 LET S = S + P(I) * S(I, J)
130 NEXT I
140 PRINT "TOTAL SALES FOR SALESMAN"J, "$"S
150 NEXT J
190 DIM S(3, 5)
200 DATA 1.2... |
1 'Example of OUT statement
10 CONFIG PIO &100,0,0,0,0,0: 'Configure 5255 at &100 to be all output ports
20 OUT &100,12
30 PRINT INP(&100)
|
!--------------------------------------------------
!- Tuesday, August 17, 2021 11:56:52 PM
!- Import of :
!- c:\tmp\newproject\bnk.first.prg
!- Unknown Machine
!--------------------------------------------------
30000 SYS15625:REM*************** BANKING MODULE 1.0 ***********************
30010 U1=U:D1=D:BO=1:F... |
Attribute VB_Name = "mdlPrint"
Option Explicit
Public Function ReportPrint(ByVal lngKey As Long, ByVal frmPrint As Form, ByVal objPrint As Object, ByVal blnPrint As Boolean) As String
'功能: 单个报告打印
'参数:
' lngKey 标本ID
'
' blnPrint True=打印
Dim st... |
10 REM This is a test
20 FILES "input.txt"
30 READ #1;A,B,C,D
40 PRINT A;B;C;D
90 STOP
99 END
|
!--------------------------------------------------
!- Thursday, April 26, 2018 9:07:31 PM
!- Import of :
!- c:\src\zimodem\cbm8bit\src\cometmode.prg
!- Commodore 64
!--------------------------------------------------
10 IFPEEK(49153)<>54THENLOAD"v-1541",8,1:RUN
20 OPEN5,2,0,CHR$(8):TI$="000000":T1=0
30 PRINT#... |
10 REM
20 REM Datei: basic.bas
30 REM
40 REM Start von Basic durch Doppelklick auf diese Programmdatei;
50 REM dazu muž BASIC als Anwendung angemeldet sein
60 NEW
|
10 REM 'THEN' TEST PROGRAM
20 X=10
30 IF X=10 THEN 60
40 PRINT "'THEN' FAILED THE TEST"
50 GOTO 99
60 PRINT "'THEN' PASSED THE TEST"
99 END
|
DIM potenz(1001,2)
LET t = TIME
OPEN #1: NAME "Input099.txt"
SET POINTER BEGIN
DO
LET p = p + 1
INPUT #1, IF MISSING THEN EXIT DO: line$
FOR j = 1 TO LEN(line$)
IF line$(j:j) = "_" THEN EXIT FOR
NEXT j
LET potenz(p,1) = VAL(line$(1:j-1))
LET potenz(p,2) = VAL(line$(j+1:LEN(line$))... |
!!
This file contains executable examples
of File I/O operations.
Examine the code and run then run
this program.
!!
PRINT "******** Text Read, Write Example"
TEXT.OPEN W, FN1, "testfile.txt"
TEXT.WRITELN FN1, "Test line 1"
TEXT.WRITELN FN1, "Test line 2"
TEXT.CLOSE FN1
TEXT.OPEN R, FN2, "testfile.txt"
DO
TEXT.... |
'$INCLUDE:'menutop.bi'
CONST FALSE = 0, TRUE = NOT FALSE
DIM Menu%
SCREEN _NEWIMAGE(640, 480, 32)
CLS , _RGB32(50, 100, 200)
_SCREENMOVE _MIDDLE
SETMENUFONT "segoeui.ttf", 16
SETMENUTEXT -1
MAKEMENU
SETMENUSTATE 102, FALSE
SHOWMENU
DO
Menu% = CHECKMENU%(TRUE)
LOOP UNTIL Menu% = 103
HIDEMENU
DATA "&File","&Open...#... |
Attribute VB_Name = "Module5"
Option Explicit
Public Function KesSatu()
Dim xStat, yStat As Double
Dim caseI As Integer
Dim pt0(0 To 31) As Double
Dim pt0a(0 To 15) As Double
Dim pt1(0 To 7) As Double
Dim pt2(0 To 11) As Double
Dim TempX As Double
Dim polypt0 As Object
Dim polypt0a As Object
Dim Pol... |
10 rem color-clock experiment
20 print "loading, please wait..."
30 d=36:rem offset into delay code (0-49)
40 for i=49152 to 49234:read v:poke i,v:next
50 poke 56333,127:poke 788,d:poke 789,192:poke 53265,27:poke 53266,1
60 poke 53281,0:poke 53274,1
70 print "{clr}{blk}{down}{5 right}raster interrupt cycle counter"
80 ... |
Attribute VB_Name = "mod_beautify"
Option Compare Database
Option Explicit
Function beautifyModule(strModuleName As String, Optional bWhiteSpace As Boolean = True, Optional bLineNumbers = True)
' Purpose: ********************************************************************
' Formats all procedures in a given VBA modul... |
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... |
COLOR 15
CLS
x$ = "|"
PRINT " Space Shooter!"
PRINT "*****************************************************************************"
PRINT
PRINT " Welcome to Space Shooter. You are a Stellar Atack Tank in"
PRINT " charge of protecting your sector from Alien Invaders. You are"
... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_Company"
Name ="dbo_CompanyEmployee"
Name ="dbo_CompanyLocation"
End
Begin OutputColumns
Expression ="dbo_CompanyEmployee.*"
Expression ="dbo_Company.*"
Expression ="dbo_CompanyLocation.*"
Expression ="dbo_CompanyEmployee.IsIN"
Express... |
10 REM TEST FOR PRECISION OPTION
100 PRINT "VALUES WITH PRECISION 7"
110 OPTION PRECISION 7
120 GOSUB 900
130 PRINT "VALUES WITH PRECISION 16"
140 OPTION PRECISION 16
150 GOSUB 900
160 PRINT "VALUES WITH PRECISION INFINITE"
170 OPTION PRECISION "INFINITE"
180 GOSUB 900
200 PRINT "VALUES WITH PRECISION 16"
210 OPTION PR... |
Attribute VB_Name = "pinger"
Option Explicit
Public Const IP_STATUS_BASE = 11000
Public Const IP_SUCCESS = 0
Public Const IP_BUF_TOO_SMALL = (11000 + 1)
Public Const IP_DEST_NET_UNREACHABLE = (11000 + 2)
Public Const IP_DEST_HOST_UNREACHABLE = (11000 + 3)
Public Const IP_DEST_PROT_UNREACHABLE = (11000 + 4)
Public Cons... |
REM BASIC8
REM Copyright (C) 2018 - 2019 Tony Wang
REM Plugin program of BASIC8.
REM Imports common modules.
import "common/utils"
REM Loads the plugin.
def plug()
print "Loading plugin: Export frame...";
register_plugin
(
"sprite, quantized", ' Target assets.
"Export frame", ' Name.
"Expor... |
10 INPUT "Imprimir A"; A
20 LET S$ = "Hola"
30 LET A = 23.23E542
40 IF A>5 THEN GOTO 30
50 END
60 INPUT ERRORLEXICO |
20 x=peek(53267)
30 y=peek(53268)
40 x=(x-30)/160*40
50 y=(y-50)/200*25
60 print "{home}":for j=1 to x:print "{right}";:next
70 for j=1 to y:print "{down}"; :next:print "Q";:goto 20 |
CLS
radius = 100
MitX = 160
MitY = 100
FOR A = 0 TO 90000 STEP 1
col = col + 1
IF col = 16 THEN col = 1
radius = radius - 0
SCREEN 7, , 1, 0
LINE (MitX, MitY)-(MitX + (COS(A * .0174532) * radius), MitY - (SIN(A * .0174532) * radius)), col
PCOPY 1, 0
LINE (MitX, MitY)-(MitX +... |
10 memory 18999:mode 0
11 gosub 100
20 load "!NOM2.scr",&c000
30 load "!game.bin",19000
40 run "nomwars.bas"
50 goto 50
100 ink 0,0:ink 1,15:ink 2,24:ink 3,1:ink 4,25: ink 5,14
110 ink 6,3:ink 7,1:ink 8,12:ink 9,18:ink 10,26:ink 11,9
120 ink 12,13:ink 13,20:ink 15,11
130 return |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
FilterOn = NotDefault
OrderByOn = NotDefault
DefaultView =5
TabularCharSet =186
PictureAlignment =2
DatasheetGri... |
10 LPRINT CHR$(27);"N":LPRINT "WHAT IS YOUR NAME?"
30 LPRINT CHR$(27);"E":LPRINT "YOUR PRINTER PRINTS IN ELITE PITCH"
50 LPRINT CHR$(27);"Q":LPRINT "AS WELL AS CONDENSED, THE NARROOWEST PITCH"
70 LPRINT CHR$(27);"R"
80 LPRINT "PICA PITCH PRINTING IS PRINTER'S THIRD PITCH"
|
5 ONERRORGOTO1000
10 MODE8:DIM:c$=CHR$(5):ANGLE0:a=1:b=0:c=0:d=0
20 CLS:PRINT"ax+bx+cx+d=0";
30 s$="a":z=a:GOSUB700:a=z:IFa=0 THEN30
40 s$="b":z=b:GOSUB700:b=z
50 s$="c":z=c:GOSUB700:c=z
60 s$="d":z=d:GOSUB700:d=z
70 LOCATE0,1:PRINTc$;".....";
100 u=b/a/3:p=c/a/3-u*u:q=2*u*u*u-u*c/a+d/a
102 IFABSp<u*u*1e-10 THENp=0
1... |
5 VIDEO3:WAIT180:P=0:L=3:T=9
10 CLS:A=46:I=A:N=49:B=1200
20 ?"***********"
30 ?"*.........*"
40 ?"*.***.***.*"
50 ?"*...*.*...*"
60 ?"*.*.....*.*"
70 ?"*.***.***.*"
80 ?"*.... ....*"
90 ?"*.***.***.*"
100 ?"*.........*"
110 ?"***********"
120 X=5:Y=6:W=0:Z=0
121 E=1:F=1:G=1:H=0
130 LCX,Y:?" "
140 IF BTN(28) W=-1:Z=0
15... |
5 gosub 300
7 print
10 print "Blinky auf GPIOA7"
20 print "GPIOB1 bestimmt Frequenz"
30 print "high = schnell low = langsam"
40 f=12500
50 if in(8)= 1 f=5000
60 out(7)=0
70 gosub 200
80 out(7)=1
90 gosub 200
100 goto 40
200 rem Delay
210 for i= 1 to f
220 a=a+1
230 next i
240 return
300 print "Die Ascii Tabelle"
302 p... |
10 PRINT "PROGRAM FILE 122: EXCEPTION - OVERFLOW ON VALUE OF"
15 PRINT " EXP FUNCTION."
20 PRINT " ANSI STANDARD 8.5"
30 PRINT
40 PRINT "SECTION 122.1: EXCEPTION - OVERFLOW ON VALUE OF"
50 PRINT " EXP FUNCTION."
60 PRINT
70 PRINT "THE OBJECT OF THIS TEST IS TO SEE WHETHER THE PROCESSOR"
80 PRINT "RECOG... |
'$FORM frmMain
'$FORM frmJump2Pos
SUB OnCancelClick ()
frmJump2Pos.HIDE
END SUB
SUB OnOkClick ()
DIM position AS INTEGER
position = VAL(frmJump2Pos.txtPosition.Text)
IF position < 1 OR position > 2000 THEN
MSGBOX "Positie moet tussen 1 en 2000 liggen"
ELSE
IF position > 1991 THEN ... |
10 SCREEN 5
20 T=0:X=1:V=0
30 DT=.02
40 K=1:M=1:GAMMA=.2
50 FOR N=0 TO 1000
60 PRINT T,X,V
70 PX=200-(50*X)
80 PY=100-(50*V)
90 PSET(PX,PY),&HF
100 DX=DT * V
110 DV=DT * ((-K*X-GAMMA*V)/M)
120 T = T + DT
130 X = X + DX
140 V = V + DV
150 NEXT N
160 PSET(10,10),&HF
170 A$=INPUT$(1)
180 END
|
10 SCREEN 9: CLS : RANDOMIZE TIMER: m = 5: k = 10: KEY OFF: s = 0
20 CLS
30 INPUT "Your name(Sheng Mu) ", NA$
40 IF LEN(NA$) > 5 THEN PRINT "Too long!": GOTO 30
50 INPUT "Your age", ag
60 IF ag > 200 THEN PRINT "How are you? Do you ill?": GOTO 50
70 INPUT "Do you want to load file?", LL$
80 IF LL$ <> "Y" OR LL$ <> "y" ... |
Attribute VB_Name = "Toolbar"
Option Explicit
Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As... |
OPTION _EXPLICIT
$EXEICON:'.\resources\InForm.ico'
'Controls: --------------------------------------------------------------------
'Main form
DIM SHARED UiEditor AS LONG
DIM SHARED StatusBar AS LONG
'Menus
DIM SHARED FileMenu AS LONG, EditMenu AS LONG, ViewMenu AS LONG
DIM SHARED InsertMenu AS LONG, AlignMenu AS LON... |
1 %TITLE "ORDER ENTRY QUERY"
%SBTTL "OE_QURY_QUERY"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1991 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 a... |
100 CLS
110 PRINT
120 PRINT "The VERIFY function returns TRUE(1) if each letter in the"
130 PRINT "first string is present in the second string, in any position"
140 PRINT : PRINT : PRINT
150 A=VERIFY("FTW" ,"For The Win!" )
160 PRINT "First test produced: " ,A
170 PRINT
180 A=VERIFY("FTW" ,"For The Foob... |
' This draws old-style letters as bitmap images
'this was created by letters.htm tool
const LtrCnt=54
dim shared as integer LtrHeight=20
dim shared LtrData(LtrCnt*2) as ubyte = _
{ 32,6,33,8,34,8,35,17,39,8,40,12,41,12,42,14,43,14,44,9, _
45,11,46,7,47,17,48,16,49,10,50,16,51,16,52,16,53,16,54,16, _
55,16,56,16,57,16... |
Attribute VB_Name = "FINAN_ASSET_TA_PARABOLAS_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.
'http://www.marketmasters.com.au/86.0.html
'http:/... |
Attribute VB_Name = "FINAN_FI_CDO_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.
'**************************************************************... |
' #########################################################################
GLOBAL iButton
GLOBAL iCheckbox
GLOBAL iRadio
GLOBAL iStatic
GLOBAL iScrollBar
GLOBAL iEdit
GLOBAL iListBox
GLOBAL iComboBox
GLOBAL iControl
GLOBAL parent_hwnd
' get user's hwnd
parent_hwnd = V... |
DECLARE FUNCTION rad! (n!)
CLS
SCREEN 12
CIRCLE (320, 240), 100
DO
a$ = TIME$
LOCATE 2, 10: PRINT a$
sec = VAL(MID$(a$, 7, 2))
'IF sec >= 15 THEN
'sec = sec - 15
'ELSE
'sec = 60 - 15 + sec
'END IF
min = VAL(MID$(a$, 4, 2))
'IF min >= 15 THEN
'min = min - 15
'ELSE
'min = 60 - 15 + min
'END IF
hr = VAL(MID$(a$, 1, 2))
'I... |
9000 SCREEN 0,1,0,0,0:COLOR 0,0:CLS
9020 '
9030 '@@@@ GAME SCREEN @@@@
9040 '
9050 COLOR 6
9060 IF SCRN=2 THEN 9110
9070 COLOR 6
9080 LOCATE 25,40:PRINT CHR$(188);
9090 LOCATE 24,40:PRINT CHR$(186);
9110 IF SCRN=1 THEN 9190
9120 COLOR 8
9130 LOCATE 25,80:PRINT CHR$(188);
9140 LOCATE 24,80:PRINT CHR$(186);
9160 COLOR... |
10 PRINT"dos":DOS"$"
20 A$="aaaaa":DOS A$
30 DOS
|
10 'PROGRAM 5
20 CLS
30 FOR COUNT = 1 TO 5
|
CLS
' PRINT "Problem 4, Page 138 - J. Gavin Ray"
GOSUB Display.Prompt
GOSUB Process.Input
GOSUB Clean.Up
END
' ******************
' Display Prompt
' ******************
Display.Prompt:
LOCATE 5, 25: PRINT "Eventual Cash Value of an Annuity"
LOCATE 8, 25: PRINT "Payment per year ==========>"
LOCATE 10, 25: PRINT "Ins... |
Attribute VB_Name = "Data"
Public The_Menu As CommandBar
Sub dataMenu()
Set The_Menu = CreateSubMenu
The_Menu.ShowPopup
End Sub
'https://www.youtube.com/watch?v=z7rfqnueCeE
Public Function CreateSubMenu() As CommandBar
Call TurnOffStuf
Set wb = ActiveWorkbook
Set wsInfo = wb.Sheets("In... |
'沈炯 7-20-96
SCREEN 0: KEY OFF: DEFDBL D: CLS
DIM gd!(3440), gr!(3440), gx!(3440), nhao$(400), GLM$(5), DSU(5), im$(11), m$(11)
DIM m(1, 1, 11), tg$(9), dz$(11), wk$(12), wn$(7), M0(10), yc(9)
DIM CZ$(1), V!(400), VD!(17), dpm(1, 10), G(1, 9), ly(9), DC(9)
isl$ = "伊斯兰历"
GOTO 190
40 a$ = " 两页菜单 (左减右加或左单次右多次;... |
ON ERROR GOTO 3000
DEFDBL A-Z
DIM az(256)
dim i as long
dim j as long
dim l as long
open "R", #5, "marsTOPOLG.RND",2
CLS
OPEN "R", #2, "OSBACKUP.RND", 8
inpSTR$=space$(8)
GET #2, 1, inpSTR$
inpFLAG$=right$(inpST... |
1 'Example 2 of COLOR statement
10 SCREEN 8
20 COLOR 4:'Forground color red, background unchanged
30 COLOR ,3:'Background cyan, forground unchanged
40 CIRCLE (100,100),50:'Red circle on cyan background
|
10 PRINT "DO YOU LOVE MINECRAFT?"
20 PRINT "[1 = YES, 0 = NO]"
30 INPUT LOVE
40 IF LOVE=1 THEN 70
50 PRINT "K THEN GTFO!"
60 STOP
70 PRINT "YAY, ME TOO"
80 END
|
10 FOR I = 100 TO 1 STEP -1
20 PRINT I
30 NEXT I
40 END |
' #############################################################################
' # #
' # UFO in space with a tail that fades out. #
' # #
... |
1 %TITLE "Accounting Period"
%SBTTL "UTL_RPRT_PERIOD"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inclusion ... |
border 5
load "" screen$
pause 1
|
Attribute VB_Name = "mdlResources"
Option Explicit
Public Const DefaultResLanguage As Integer = 0
Public Const DefaultResType As Long = 10
Public Const ReadBufferSize As Long = 32767
Public Type StringSet
Strings() As String
End Type
Public Type ResourceEntry
Language As Long
Id As Long
... |
5 DATA0
10 DIMB(13),G(13),F(50):READN
15 FORI=0TON-1:READF(I):NEXTI
20 PRINT\PRINT "GAME OF *** AWARI ***"\B=0
25 FORI=0TO12:LETB(I)=3:NEXTI
30 LETC=0:LETF(N)=0:LETB(13)=0:LETB(6)=0
35 GOSUB500
40 PRINT"YOUR MOVE";:GOSUB110
45 IFB=0GOTO80
50 IFM=HTHENGOSUB100
55 IFB=0GOTO80
60 PRINT"MY MOVE IS";:GOSUB800
65 IFB=0GOTO8... |
10 :REM'LPTSETUP - 13 AUG 92 rev. 30 OCT 2010
20 IF EX$=""THEN EX$="EXIT"
30 COMMON EX$
40 CLS:COLOR 7,0,0
50 TB=7 :REM'tab for text
60 PRINT
70 PRINT TAB(TB);
80 PRINT "Hard copy printouts are made by scanning the screen for ASCII"
90 PRINT TAB(TB);
100 PRINT "characters and sending each character or space one-a... |
1 REM >`C2 ~01>~E92!~01>~032"~01:~1B~01~FE~03`@>~F42!~01>~012D~03`I
2 CALL 986
3 POKE 836,0
10 REM CCE SOFTWARE 08/85
70 HOME : PRINT TAB( 142)"C C E"; TAB( 201)"S O F T W A R E"
160 PRINT : PRINT : PRINT
170 PRINT " ANALISE ECONOMICA "
215 FOR ~20AA = 1~20 TO ~201500: NEXT AA
220 LET ~20A$ = "L... |
'G constant/real objects
REM $INCLUDE: 'SVGABC'
t = WHICHVGA
PRINT t
CLS
CONST yo2 = 240, xo2 = 320, ymax = 480, xmax = 640, cs = 16, rcs = 256
FOR temp = cs TO rcs - 1
pal$ = pal$ + STRING$(3, temp)
NEXT
up = yo2: right = xo2
OPTION BASE 1
'delay = 7000
DIM dx AS DOUBLE
DIM dy AS DOUBLE
DIM dist AS DOUBLE
DIM d... |
10 DIM F(20)
12 FOR I = 0 TO 19
14 READ F(I)
20 NEXT I
30 DATA 3, 2, 1, 15, 17, 6, 0, 10, 11, 18, 4, 9, 19, 13, 16, 14, 5, 8, 7, 12
35 REM S indicates sorted
40 LET S = 1
45 FOR I = 0 TO 18
50 IF F(I) <= F(I + 1) THEN 90
55 LET S = 0
60 LET T = F(I + 1)
70 LET F(I + 1) = F(I)
80 LET F(I) = T
90 NEXT I
110 IF S = 0 THEN... |
#COMPILE EXE
#DIM ALL
TYPE Student
FirstName AS STRING * 25
LastName AS STRING * 25
END TYPE
FUNCTION PBMAIN () AS LONG
DIM std1 AS Student
DIM std2 AS Student
std1.FirstName = "Fred"
std2.FirstName = "Barney"
PRINT std1.FirstName
PRINT std2.FirstName
WAITKEY$
END FUNCTION
|
' Este codigo ha sido generado por el modulo psexport 20180802-w32 de PSeInt.
' Es posible que el codigo generado no sea completamente correcto. Si encuentra
' errores por favor reportelos en el foro (http://pseint.sourceforge.net).
DIM valor1 AS LONG
DIM valor10 AS INTEGER
DIM valor2 AS STRING
DIM valor3 AS STRING
D... |
DECLARE FUNCTION Menu.GetInpt! (te$)
DECLARE FUNCTION Menu.GetFName! ()
DECLARE SUB Menu.Special ()
DECLARE SUB Menu ()
DECLARE SUB FO (x, y, t$)
DECLARE FUNCTION GetInpt! (te$)
DECLARE FUNCTION GenInpt (te$)
DECLARE SUB Special ()
DECLARE FUNCTION GetFName! ()
DECLARE SUB PE ()
SCREEN 13
DIM SHARED Menu... |
10 EI=5:GE=5+10+20+40+80+160+320
20 F$(0)="SCHWARZ":F$(1)="ROT"
30 clearw2 :gotoxy 10,18:print "ROULETT DEMO"
50 T0=EI:KA=GE
60 gotoxy 1,19:print "EINSATZ FARBE KAPITAL"
65 T0=EI
70 FA= INT ( RND (8)*2):N=N+1
80 KA=KA-T0: IF KA<0 THEN 200
90 gotoxy 1,20:print T0," ";:gotoxy 9,20:print F$(FA... |
CLS
OPEN "jinjin.in" FOR INPUT AS #1
OPEN "jinjin.out" FOR OUTPUT AS #2
p = 0
FOR i = 1 TO 7
INPUT #1, x, y, z
s = x + y + z
IF s > 8 THEN
IF s > p THEN
ans = i
p = s
END IF
END IF
NEXT i
PRINT #2, LTRIM$(STR$(ans))
CLOSE #1
CLOSE #2
END
|
dbMemo "SQL" ="SELECT DISTINCT e.*, qp.SamplingYear, qp.Quadrat, qp.Position_m, 'Q' & qp.Quadra"
"t & IIF(LEN(qp.Position_m) > 0, '_' & qp.Position_m & 'm', '') AS ColName\015\012"
"FROM (tbl_Events AS e INNER JOIN EventSampleQuadrat AS esq ON esq.Start_Date = e"
".Start_Date) INNER JOIN QuadratPosition AS... |
Attribute VB_Name = "Bas_AA320ECL"
Option Explicit
'モジュール名
Public Const Gs_ModName_Cnst = "AA320ECL"
Public Const Gs_FrmName_Cnst = "Frm_AA32D01"
Public Const Gs_TrmrgName_Cnst = "AA320E.TRM"
Private Const Gs_AK2MAS_Cnst = "健診所マスタ"
Private Const Gs_ADFMAS_Cnst = "健診班マスタ"
Private Const Gs_AKBMAS_Cnst = "職員マス... |
Version =20
VersionRequired =20
PublishOption =1
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width ... |
Version =20
VersionRequired =20
PublishOption =1
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
FilterOn = NotDefault
AllowEdits = NotDefault
AllowDesignChanges = ... |
Operation =1
Option =0
Where ="(((tbl_QA_Results.Time_frame) Like Nz([Forms]![frm_Switchboard]![fsub_DbAdmin].["
"Form]![tbxTimeframe],\"*\")) AND ((tbl_QA_Results.Query_type)=\"1\" Or (tbl_QA_R"
"esults.Query_type)=\"2\") AND ((tbl_QA_Results.Query_result)<>\"0\") AND ((tbl_Q"
"A_Results.Remedy_desc) Is N... |
CLS
10 Y = 4
20 X = Y * 8
100 GOSUB 1000
200 PRINT X, Y, Z
300 END
1000 Z = X / 2
RETURN
|
#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 sho... |
100 ' BEEP sample
110 FOR I=&H41 TO &H44
120 PRINT CHR$(I);" ¦ Ƴخ¸ ¼Ã ¸ÀÞ»²¡ ";
130 A$=INPUT$(1)
140 IF A$=CHR$(I) THEN PRINT A$ ELSE BEEP:GOTO 130
150 NEXT I
160 END
|
Attribute VB_Name = "HeadOfficeStatistics"
'!!! ManualFix Clearing: Problem auto-fix by Project Analyzer 7.1.07 on 15/12/2005
'---------------------------------------------------------------------------------------------------------
' Following procedures could be reinstated in main form as the number of procedures in ... |
10 :REM'YAGILONG - Extremely Long Yagi - 06 MAY 95 rev.13 APR 97
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 COLOR 7,0,1
50 DIM S(100),D(100),DH(100),DL(100),T(100)
60 UL$=STRING$(80,205)
70 U$="#####.###"
80 :REM'
90 :REM'.....start
100 CLS
110 COLOR 15,2
120 PRINT " YAGI ANTENNA - Extremely Long";TAB(60);"by Günter... |
Attribute VB_Name = "Wait"
'DECLARATIONS FOR WinTime.cls
Private Declare Function GetTickCount& Lib "kernel32" ()
Private Function WinTime() As String
Dim lngReturn As Long
Dim tmp, tmpTime, tmpHours, tmpMinutes, tmpSeconds, tmpMilliSeconds As String
lngReturn = GetTickCount()
WinTime = lngReturn
End Function... |
10 PRINT "Input A, B, C: "
20 INPUT A
30 INPUT B
40 INPUT C
50 LET D = B * B - 4 * A * C
60 IF D < 0 THEN GOTO 120
70 LET X1 = (-B + SQRT(D)) / (2 * A)
80 LET X2 = (-B - SQRT(D)) / (2 * A)
90 PRINT "X1 = ", X1
100 PRINT "X2 = ", X2
110 END
120 PRINT "No solutions"
|
10 REM METEOR FLIGHT
12 PRINT
14 INPUT "INITIAL MASS (KG)";MM
16 INPUT "DENSITY (KG PER CUBIC METER)";D
18 INPUT "SPEED AT ENTRY (KM/S)";V
20 INPUT "ZENITH ANGLE (DEG)";Z
22 A=1: L=0.001: G=0.75: H0=0.2: H1=500000
24 H=150000: T=0: T9=0.01: T0=0: T1=0.1
26 M=MM: Z=COS(Z*3.1416/180): V=V*1000
28 PRINT:... |
// https://github.com/dero-guard/dero-guard
// Litarvan & Slixe
// Must be called only one-time.
Function Initialize() Uint64
1 IF EXISTS("owner") THEN GOTO 5
2 STORE("owner", SIGNER())
3 STORE("total", 0)
4 RETURN 0
5 RETURN 1
End Function
// Use this entrypoint to register or update yourself as an exit node provide... |
1 %TITLE "Change Function"
%SBTTL "MAIN_DEFAULT"
%IDENT "V3.6a Calico"
FUNCTION LONG MAIN_DEFAULT(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 with ter... |
5 ONERRORGOTO900
20 MODE8:DIM:a=0:b=0:h=0:c$=CHR$(5)
30 CLS:PRINT"abh/3 a:b:edge h:height";
40 s$="a":z=a:GOSUB500:a=z
41 s$="b":z=b:GOSUB500:b=z
42 s$="h":z=h:GOSUB500:h=z
50 LOCATE0,1:PRINTc$;"Volume =";a*b*h/3;:z$=INPUT$(1,@):GOTO40
500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERET... |
CLS
CONST scale_factor = 10
CONST dx = 0.000001
DIM m AS DOUBLE
DIM c AS DOUBLE
DIM l AS DOUBLE
DIM h AS DOUBLE
DIM a AS STRING
DIM SHARED area AS DOUBLE
COLOR 28, 0: print "/ + - = * = - + /"
PRINT "THE FORM y = mx + c IS THE SLOPE-INTERCEPT FORM."
PRINT "WHERE m IS THE SLOPE AND c IS THE y-INTERCEPT."
... |
CLS
bas:
INPUT "ADINIZI GIRINIZ....=", AD$
INPUT "SOY ADINIZI GIRINIZ....=", SOY$
INPUT "ADRESINIZI GIRINIZ....=", ADR$
INPUT "TELEFONUNUZU GIRINIZ...=", TEL
OPEN "A", #1, "DENEME2"
WRITE #1, AD$, SOY$, ADR$, TEL
CLOSE #1
INPUT "DEVAM EDECEKMISINIZ...=", CEV$
IF CEV$ = "E" OR CEV$ = "e" THEN GOTO bas
|
10 print tab(25);"flip"
20 print tab(18);"creative computing"
30 print tab(16);"morristown new jersey":print:print:print
31 b1=50
32 print "explanation (y or n)";
34 input t$
36 if left$(t$,1) <> "y" then 180
50 print "on each turn, you guess yes <'y'> or no <'n'>."
60 print "only one is correct, and the program has de... |
1 REM
2 REM INTRODUCTION TO COMPUTER PROGRAMMING BASIC FOR BEGINNERS
3 REM BY USBORNE BOOKS
4 REM https://usborne.com/browse-books/features/computer-and-coding-books/
5 REM
10 A$="I AM STUPID"
20 B$="ONLY FOOLS THINK"
30 C$=B$+" "+A$
40 END |
Version =21
VersionRequired =20
Begin Form
AutoCenter = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
ViewsAllowed =1
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =10440
DatasheetFontHeight =9
ItemSuffix =57
... |
10load"huhuhuhu"
|
10 REM Blockbuster--playfield and bricks.
100 DEFINT A-Z:SCREEN 1,0:COLOR 0,1:KEY OFF:CLS
130 LINE(0,0)-(319,199),2,BF:LINE(80,20)-(241,185),0,BF
140 FOR I=0 TO 7:FOR J=0 TO 3:LINE(82+20*I,48+J*12) -STEP(18,8),((I+J) MOD 2)+1,BF:NEXT J:NEXT I
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.