text
stringlengths
7
5.36M
Attribute VB_Name = "Hooker" Option Explicit 'Copyright 2000 by AQUA TERRA Consultants Private hKeyboardHook As Long Private KeystrokesRecorded As String Private ShiftDown As Boolean Private CtrlDown As Boolean Private AltDown As Boolean Public Sub HookKeyboard() KeystrokesRecorded = "" hKeyboardHook ...
' Memory Game, for QBasic, http://rudih.info ' A 6*6 board with 18 letter pairs to uncover. v1.0 DIM cell(1 TO 36) AS STRING 'pairs of letters RANDOMIZE TIMER matchstr$ = " " movecount = 1 'randomly fill board ([A]065-[R]082) FOR curc = 65 TO 82 STEP 1 z = 0 WHILE z = 0 x = INT(RND * 36) + 1 IF cell(x) = "" ...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 AllowUpdating =4 ScrollBars =0 PictureAlignment =2 DatasheetGridlinesBehavior ...
clearevent: SELECT CASE Event.elParamType ON ERROR GOTO 0 CASE 1, 2 IF 0 < dABSOLUTEp(peekp(peekp(Event.lParam) + 8), Event.lParam) THEN error$ = "Event.lParam reference count is > 0." Event.elParamType = 0 Event.lParam = 0 GOSUB logger GOSUB x...
5 PROC TEST(); 8 BEGIN 10 PROC MULT(); 15 {A*B - RESULT IN C} 20 BEGIN C=0; 25 MULL:IF B>0 THEN 28 BEGIN 30 IF B&1=1 THEN C=C+A; 40 A=A<<1;B=B>>1;GOTO MULL 45 END 50 END; 55 ENTER:A=6;B=19;MULT();WRHEX(C) 60 END
10 a=12:z=a*1024/256 20 poke 53272,(peek(53272)and240) or a 30 poke 52,z:poke 56,z:clr:a=12 40 poke 56334, peek(56334) and 254 50 poke 1,peek(1) and 251 60 for j=0 to 56832-53248 70 poke a*1024+j,peek(53248+j) 80 next j 90 poke 1,peek(1) or 4 100 poke 56334,peek(56334) or 1 110 sc=5:z=1024*12:for j=z+(sc*8) to z+(sc*8)...
Attribute VB_Name = "FINAN_ASSET_SYSTEM_ZWEIG_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. '////////////////////////////////////////////////////////...
SUB HUNT (XX(), N, X, JLO) ASCND% = XX(N) > XX(1) IF JLO <= 0 OR JLO > N THEN JLO = 0 JHI = N + 1 ELSE INC = 1 IF X >= XX(JLO) EQV ASCND% THEN 1 JHI = JLO + INC IF JHI > N THEN JHI = N + 1 ELSEIF X >= XX(JHI) EQV ASCND% THEN JLO = JHI INC = INC + INC GOTO 1 E...
SCREEN 13 X = 5 Y = 3 X.SLOPE = (320 / 300) Y.SLOPE = (200 / 300) COLOUR = 1 DO COLOUR = COLOUR + 1 IF COLOUR = 256 THEN COLOUR = 1 LINE (X, 0)-(X, 201), COLOUR LINE (0, Y)-(321, Y), COLOUR FOR SLOW = 1 TO 1000 NEXT SLOW 'LINE (X, 0)-(X, 201), 0 'LINE (0, Y)-(321, Y), 0 IF X <= 160 THEN X.SLOPE = X.SLO...
10 FOR Z=0 TO 5 20 FOR R=0 TO 1000 30 PRINT R; 40 NEXT R 50 NEXT Z
INPUT "N,M="; N, M DIM AS INTEGER A(M) FOR I = 0 TO M A(I)=I NEXT I S = 0 DO WHILE A(0)=0 S = S+1 FOR I = 1 TO M PRINT A(I); NEXT I PRINT K = M DO A(K) = A(K)+1 F = 1 DO WHILE A(K)>N A(K)=1 K=K-1 F = 0 LOOP ...
10 CLS 20 COLOR 15 30 A=INT(RND*2) 40 IF A=0 THEN B=.00005:C=2500 50 IF A=1 THEN B=.5:C=2500 60 IF A=2 THEN B=0:C=4000 70 SOUND 1000,B 75 FOR Z=0 TO C:NEXT 80 GOTO 30 
xangle = 0: zangle = 1: leave = 0: angle = 360: PI = 3.141592654#: zoom = 100 radplus = (90 * PI) / 180: major = .1: minor = .1: halfx = 170: halfy = 100 adder = 1.5: x = 0 DIM x(10), y(10), viewx(10), viewy(10) SCREEN 7 INPUT "How many sides? "; sides adder = 360 / sides adder = (adder...
' ' ± ± ±±± ±±±± ±±±±± ±±± ±± ± ±±±±± ' ± ± ± ± ± ± ± ± ± ± ± ± ± ' ± ± ± ±±±±± ±±±± ± ± ± ± ± ± ±±±± ' ± ± ± ± ± ± ± ± ± ± ± ± ± ± ' ±± ±± ± ± ± ± ±±±±...
1 %TITLE "Depreciation Summary Ledger Report" %SBTTL "AD_RPRT_LEDSUMMARY" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! ...
#BASIC PROGRAMMING BUT USING YA BASIC COMPLIER #EXECUTE USING http://www.compileonline.com/execute_basic_online.php 10 FOR A = 1 TO 1000 20 FOR B = A+1 TO 1000 30 C = 1000 - A - B 40 IF A*A + B*B = C*C THEN 50 PRINT A, B, C 60 GOTO 100 70 END IF 80 NEXT B 90 NEXT A 100 END
1 %TITLE "Journal Entry" %SBTTL "AD_JOUR_JOURNAL" %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 abo...
SUB DDPOLY (C(), NC, X, PD(), ND) PD(1) = C(NC) FOR J = 2 TO ND PD(J) = 0! NEXT J FOR I = NC - 1 TO 1 STEP -1 IF NC + 1 - I < ND THEN NND = NC + 1 - I ELSE NND = ND FOR J = NND TO 2 STEP -1 PD(J) = PD(J) * X + PD(J - 1) NEXT J PD(1) = PD(1) * X + C(I) NEXT I CONSQ = 2! FOR I = 3 TO ND PD(I...
REM Find the greatest common divisor of A & B using Euclid's algorithm 10 LET A = 350 11 LET B = 539 20 GOSUB 30 21 IF A = B THEN GOTO 40 22 GOTO 20 REM Main GCD Subroutine 30 IF A > B THEN LET A = A - B 31 IF A < B THEN LET B = B - A 33 RETURN REM We're done, print the GCD, expecting 7 40 PRINT A
Dim i as Integer for i = 1 to 100 IF i Mod 3 = 0 THEN IF i Mod 5 = 0 THEN PRINT "FizzBuzz" ELSE PRINT "Fizz" END IF ELSEIF i Mod 5 = 0 THEN PRINT "Buzz" ELSE PRINT i ENDIF NEXT i END
'Form created with the help of Freeform 3 v03-27-03 'Generated on Apr 27, 2009 at 18:58:14 'Created by: Markus Tolin for MUAGS 'definations open "mesock32.dll" for dll as #me global connect global rec$ global handle global text$ global PlayerLocX global PlayerLocY global PlayerLocZ global cmd global dumm...
'10 REM MOONRISE-MOONSET 11 DIM Ma(3,3) 12 '' mode =1 Automatic 13 mode=0 15 GOSUB 170 16 '' Chandler Arizona Latitude=33N18 Longitude=-111W50 17 B5=33+(18/60) : L5=-1*(111+(50/60)) 18 H=7 19 if mode=1 then goto 30 20 INPUT "Lat, Long (Deg)";B5,L5 25 INPUT "Time Zone (Hrs)";H 30 L5=L5/360: Z0=H/24 35 GOSUB 760...
X$=InputBox ("Tapez le nom de fichier:","Enregistrement") LOCATE 1,1 PRINT X$ PRINT RND PRINT SGN(-2) PRINT SQR(25) PRINT PPOINT(10,10) X=MsgBox("Vous avez semble-t-il une erreur!",2,"Erreur")
1 %TITLE "Operation Labor Variance Report" %SBTTL "WP_RPRT_OPRLABVAR" %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 ...
10 E$=CHR$(27) 20 DEF FNC$(X,Y)=E$&"["&STR$(Y)&";"&STR$(X)&"H" 30 DEF FNS$(A,B)=E$&"["&STR$(A)&";"&STR$(B)&"r" 40 L$=E$&"[2J" 50 N$=E$&"[0m" 60 B$=E$&"[1m" 70 U$=E$&"[4m" 80 F$=E$&"[5m" 90 R$=E$&"[7m" 100 W1$=E$&"#6" \ W0$=E$&"$5" 110 PRINT L$; \ PRINT FNC$(1,10);W1$ 120 DIM A%(9,19),B%(7,1),S$(10) 130 S$(0...
10 SCREEN 12 12 RANDOMIZE TIMER 15 xx = 350: yy = 200 20 FOR y = -10 TO 480 STEP 41 30 LINE (1, y)-(640, y), 7 40 NEXT y 50 FOR x = -10 TO 640 STEP 41 60 LINE (x, 1)-(x, 480), 7 70 NEXT x 80 FOR r = 5 TO 310 STEP 50 90 CIRCLE (320, 235), r: IF r > 50 THEN CIRCLE (320, 235), r - 50, 0 IF r > 100 AND r < 150 T...
'( Filename : Zephyreye.bas Author : Brad Nelson Revision : 0.1.1 Rev. Date : 29 October 2007 Revision Reason : Because It 's just time for a new rev. ') '******************************************************************************* 'Compiler direct...
5 PRINT A" = ";T=T+1 10 PRINT "*X("R1"-"R2")........" 20 PRINT CHR$(91)"P]=PLOT " CHR$(91)"<--]=UP " CHR$(91)"-->]=DOWN " CHR$(91)"M]=MENU"
DECLARE SUB MSHOW () '============================================================================ ' STOPW6.BAS - //IBM PC stopwatch ' for use with QBASIC, QB45 compiler ' Copyright 2005 JessComputers. All Rights Reserved. ' Portions copyright 1994 Phil Weber '=====================================================...
1 %TITLE "Dump Out Financial Statement Control Files" %SBTTL "GL_RPRT_FINR02" %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 lice...
Attribute VB_Name = "WEB_SERVICE_MORNING_CHART_LIBR" Option Explicit 'Requires that all variables to be declared explicitly. Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the 'default first index of arrays. Function MORNINGSTAR_FUNDAMENTAL_CHARTS_FUNC( _ B...
REM WS2812B Serial LED Control Class for MachiKania type P REM WS2812B.BAS REM Connection: REM DIN -- IO bit x REM VDD -- +5V REM GND -- GND REM Usage: REM A=NEW(WS2812B,N,P) REM Init Buffer REM N:Number of LED REM P:IO bit number(0-7) REM METHOD SETLED(Position,R,G,B) REM Set Serial LED Color RE...
Version =20 VersionRequired =20 PublishOption =1 Checksum =144648956 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault CloseButton = NotDefault DividingLines = NotDefault ...
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault DefaultView =...
Version =21 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault CloseButton = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 ScrollBars =0 PictureAlignment =2 ...
1 CLS RANDOMIZE TIMER x = INT(RND * 30) + 1 PRINT "busca el numero" LOCATE 1, 17 PRINT x INPUT y$ IF y$ = "1" AND x = 15 THEN 10 IF y$ = "2" AND x = 4 THEN 10 IF y$ = "3" AND x = 29 THEN 10 IF y$ = "4" AND x = 18 THEN 10 IF y$ = "5" AND x = 28 THEN 10 IF y$ = "6" AND x = 2 THEN 10 IF y$ = "7" AND x = 14 TH...
DEFINT A-Z 'declarations DECLARE SUB FORMPIAN () DECLARE SUB Triangolo () DECLARE SUB Rettangolo () DECLARE SUB Quadrato () DECLARE SUB Trapezio () DECLARE SUB Cerchio () DECLARE SUB Poligoni () DECLARE SUB Rombo () DECLARE SUB Parallelogramma () ' Runprogram CLS FORMPIAN END SUB Cerchio COLOR 15, 3: CLS FOR A = ...
10 input "Geben Sie bitte einen String ein: "; a$ 20 prinf "Guten Tag "; a$ : REM Error Case: Mistyped print
CLS INPUT "Konvergenzschritte (ca. 30-100): ", tiefe INPUT "Konverenzabstand (Quadrat, ca. 30-100):", grenze INPUT "Rechter x-Wert: ", xr INPUT "Linker x-Wert: ", xl INPUT "Oberer y-Wert: ", yo INPUT "Unterer x-Wert: ...
10 for a=1 to 100:rem start loop 20 print"{home}";a:rem print number 30 next a:rem go back and do again until a = 100
Attribute VB_Name = "Module1" Sub FormatMessage() Attribute FormatMessage.VB_ProcData.VB_Invoke_Func = "M\n14" ' ' FormatMessage Macro ' ' Keyboard Shortcut: Ctrl+Shift+M ' Range("F1").Select Application.CutCopyMode = False ActiveCell.FormulaR1C1 = _ "=TRIM(SUBSTITUTE(SUBSTITUTE(RC[-1],CH...
DECLARE SUB cprint (sentence AS STRING, row AS INTEGER, column AS INTEGER, chrtc AS INTEGER) SCREEN 12 OPEN "eng1.fnt" FOR BINARY AS #2 cprint " 01234565789ABCDEFGHIJKLMNOPQRSTUVWXYZ", 10, 10, 7 'LOCATE 3: PRINT "" END SUB cprint (sentence AS STRING, row AS INTEGER, column AS INTEGER, chrtc AS INT...
'/////////////////////////////////////////////////////////////////////////////// '// '// Przyklad jak uzywac makra szyfrujace DEMO_START i DEMO_END '// '// Wersja : PELock v2.0 '// Jezyk : PowerBASIC '// Autor : Bartosz Wójcik (support@pelock.com) '// Strona domowa : https://www.pelock.com '/...
CLS a = 15 b = 4 c = 4 d = 4 e = 4 f = 4 SCREEN 13 3 CLS COLOR 2 PRINT "FASE 1" PRINT "" PRINT "" PRINT "" PRINT "" PRINT "" PRINT " -INDEX-" PRINT "" COLOR a PRINT "" PRINT "1. LA JUNGLA DE LA MORT..........." COLOR b PRINT "" PRINT "2. EL PANTĚ DE LA MORT............" PRINT "" CO...
@ERASE 0 REM addr 1 0050C2585EAA @INIT 10 10 A = baud 1152 11 Z = 1 12 A = pioout 10 13 A = pioout 9 14 A = pioclr 10 15 A = pioset 9 16 A = disable 3 17 U = 0 18 RETURN @IDLE 19 19 ALARM 0 20 A = slave 10 21 A = pioset 10 22 A = pioclr 10 23 A = status 24 IF A < 10 THEN 27 25 A = disconnect 1 26 ALARM 0 27 RETURN ...
Version =20 VersionRequired =20 Begin Form DefaultView =2 ViewsAllowed =2 TabularFamily =103 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =4539 DatasheetFontHeight =10 ItemSuffix =18 Right =13515 Bottom =7605 DatasheetGridlinesColor =12...
110 ' Challenge 1.06 - Counting in the sand (acepta 369) 120 ' Counting in base 1 130 ' Locomotive Basic version (Amstrad CPC) 140 INPUT n 150 WHILE n <> 0 160 FOR i = 1 TO n 170 PRINT "1"; 180 NEXT i 190 PRINT 200 INPUT n 210 WEND
100 REM BRAKES 110 GOSUB 1100 120 LET X=0:LET Y=3:GOSUB 1700:PRINT "braking distances" 130 PRINT:PRINT "how fast (km/h) "; 140 GOSUB 2100:IF K<113 THEN GOTO 170 150 PRINT:PRINT "over the speed limit" 160 LET T=6:GOSUB 1400:GOTO 110 170 LET A=INT(K/5+0.5):LET B=INT(K*K/166+0.5) 180 PRINT:PRINT "distances (in m)" 190 PRI...
' C,D Water Drop Tick ' W,H Glass Width,Height ' A,B Water Width,Height ' S Score 1 'º¯Ìß 10 CLS:CLV:CLT:L=18 20 LC23,2:?"" 30 LC21,3:?"" 40 LC23,4:?"" 50 LC22,5:?" " 60 LC18,6:?"" 70 LC17,7:?"" 80 LC17,8:?"  " 90 LC17,9:?"" 'Next Glass 110 W=RND(4)+1:H=RND(6)+1:G...
'-------------- ' ROCKET MAN ' ][ '-------------- ' Game by: ' Michal ' Wallace '-------------- SCREEN 13 DIM Monster1(40, 40) DIM Monster2(40, 40) DIM RocketMan(40, 40) DIM fireball(10, 10) DIM stars(100, 3) RANDOMIZE TIMER '-------------- ' Draw Monster1 CLS CIRCLE (50, 50), 15, 5: PA...
STR(1) = 5 PRINT "|"; STR$(STR(1)); "|" REM output | 5|
10 def seg=0:defdbl b:b=systab+20:ad=peek(b):had=ad:ntd=1 20 fullw 2:clearw 2 30 gotoxy 1,1:?"** NEO/DEGAS FILE CONVERTER **" 40 gotoxy 1,3:?"ENTER FILENAME IN UNSHIFTED LETTERS" 50 gotoxy 1,5:input">FILE FOR CONVERSION";f$:lf=len(f$) 60 if lf<5 or lf>12 then goto file 70 sf$=right$(f$,4):if ...
10 ' --- Slot 0 20 ' color 1 30 DATA 00,00,00,00,00,00,00,00,00,00,00,01,02,01,00,00 40 DATA 00,00,01,03,03,03,03,0C,34,44,9C,E8,48,8F,0F,0F 50 ' 60 ' --- Slot 1 70 ' color 1 80 DATA 00,00,C0,60,E0,20,20,E0,10,28,28,36,5D,C6,E0,E0 90 DATA 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 100 ' 110 ' --- Slot ...
Version =21 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 TabularFamily =124 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 ...
REM Joshua Hipple - Final - Question 6 REM Create, manipulate, and output a two dimensional array DIM TheArray(1 TO 3, 1 TO 3) CLS GOSUB LoadArray GOSUB AddToArray GOSUB PrintArray END REM ** LoadArray ** LoadArray: FOR Row% = 1 TO 3 FOR Col% = 1 TO 3 READ TheArray(Row%, Col%) NEXT Col% NEXT Row% DATA 8, 7, 3, 2, ...
Check 0AB09001 Auto 8224 # Run-time Variables Var h: Num = 195 Var l: Num = 80 Var adr: Num = 50000 # End Run-time Variables 10 INPUT "adr=";adr 30 LET h=INT (adr/256) 40 LET l=adr-(INT (adr/256)*256) 50 PRINT "Font adr=";adr: PRINT "low byte=";l;" high byte=";h
10 INPUT "How Large a String Array do you want to create? " ,A 20 DIM Buffer$(A) 30 FOR I=1 TO A 40 Buffer$(I)="This is line number " +STR$(I) 50 NEXT 60 CLS 70 FOR I=1 TO A 80 PRINT Buffer$(I) 90 NEXT
0 DIM C$(6):CLS 5 C$(0) = " " 10 C$(1) = "A" 20 C$(2) = "B" 30 C$(3) = "C" 40 C$(4) = "D" 50 C$(5) = "E" 60 C$(6) = "F" 100 D$=C$(1):E$=C$(2):F$=C$(3) 111 IF INKEY$=""GOTO 111 112 D$=D$+C$(1) 113 IF INKEY$=""GOTO 113 114 E$=E$+C$(2) 115 IF INKEY$=""GOTO 115 116 F$=F$+C$(3) 117 IF INKEY$=""GOTO 117 122 D$=D$+C$(1) 123 ...
Attribute VB_Name = "VBT_RF" Option Explicit #Const Connected_to_J750 = True #Const Connected_to_AXRF = True #Const Debug_advanced = True Public FIRSTLOAD As Boolean Global Const DUTRefClkFreq As Double = 13560000# 'NOT USED FOR LoRa MODULES! Public tx_path_db(7) As Double 'Dim for number of sites Public coax...
5 PRINT CHR$(26):WIDTH 80 10 PRINT TAB(32);"HAMURABI":PRINT 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 40 PRINT "TRY YOUR HAND AT GOVERNING ANCIENT SUMERIA" 50 PRINT "FOR A TEN-YEAR TERM OF OFFICE.":PRINT 60 D1=0: P1=0 70 Z=0: P=95:S=2800: H=3000: E=H-S 80 Y=3: A=H/Y: I=5...
#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 CALL a(4) 20 ?RET(0),RET(1) 30 END 100 PROC a(x) 110 RETURN 4,FN b(42) 200 PROC b(x) 210 RETURN 23
1 %TITLE "Query the Inventory Product" %SBTTL "IC_QURY_QUERY" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 1988 BY ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the...
10 :REM'ELSPEC 14 APR 09 20 CLS:KEY OFF: 30 IF EX$=""THEN EX$="EXIT" 40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$ 50 COMMON EX$,PROG$ 60 COLOR 15:PRINT " ELECTOMAGNETIC SPECCTRUM" 70 PRINT " ....press 1 to continue or 0 to exit...." 80 Z$=INKEY$:IF Z$=""THEN 80 90 IF Z$="0"THEN RUN EX$ 100 IF Z$="1"THEN 120 110 GOTO 90 1...
0 sys 9920 1 gosub10000:sys50500:b$="*****":hy=0:goto6000 3 fora=53248to53248+40:pokea,0:next 10 clr:poke53281,0:poke49753,1:forx=1to5:sc$(x)="{cyan}galactic attack":next:v=53248:z$="{right*27}{reverse on}":b$="*****":hy=0:sys49760:dimm%(12):poke53280,0:hi=54287:lo=54286:wa=54290 30 f=500:l=5:u=40:sc=0:hm=0:h1=1:w=...
dbMemo "SQL" ="SELECT ssd_JBFsJoblets.JBFID, ssd_JBFsJoblets.JobletID, ssd_JobletLibrary.Joblet" "Name, ssd_JobletLibrary.JobletType, ssd_JBFsJoblets.ViewOrder, ssd_JBFPropertyVa" "lues.ValueID, ssd_JobletPropertyValues.PropertyID, ssd_JobletPropertyValues.Name" ", ssd_JobletPropertyValues.Value, ssd_Joble...
Rem Global Definitions Rem These handle the SQL Server connection Global DBLIB_VERSION$ Global PrimaryWindowTitle$ Global SqlConn% Global ServerName$ Global LoginID$ Global Password$ Global DatabaseName$ Global SQLStatus% Global DefServer$ Global DefLogin$ Global Const LoginTimout% = 30 Global Const Qu...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 PicturePages =1 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Wid...
10 ' --- Slot 0 30 DATA 00,00,00,00,00,00,00,00,00,00,00,01,02,01,00,00 40 DATA 00,00,01,03,03,03,03,0C,34,44,9C,E8,48,8C,0F,0F 60 ' --- Slot 1 80 DATA 00,00,C0,60,E0,20,20,E0,10,28,28,36,5D,46,E0,E0 90 DATA 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 110 ' --- Slot 2 130 DATA 00,00,00,00,00,00,00,00,00,00,0...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault ScrollBars =2 TabularFamily =5 PictureAlignment =2 DatasheetGridli...
1 %TITLE "Translate a Logical Name" %SBTTL "READ_SYSLOG" %IDENT "V3.6a Calico" FUNCTION STRING READ_SYSLOG(LOGNAM1$) ! ! 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 su...
'spectrumanalyzer.bas or 'MSA_version OK2FKU rev 0, Original 28-08-19 6:30 am The previously released version is 118 Rev 0 'Created from version 118v0 28-08-19 6:30 am global msaVersion$, msaRevision$ 'Version and revision numbers of this release msaVersion$="OK2FKU" 'OK2FKU.. msaRevision$=" 1" 'OK2...
5 CLEAR1000:PRINT"1) LSAVEM UTILITY":PRINT"2) START,END,EXEC SCANNER":INPUTA:IFA<>1THEN1000 10 CLS:PRINT"SOCK MASTER'S MAGIC HI-MEMORY":PRINT"SAVEM UTILITY. (OCTOBER 1995)":PRINT 20 PRINT"FILENAME TO SAVE? ";:LINEINPUTF$:A=INSTR(1,F$,"/"):IFA<>0THENMID$(F$,A,1)="." 30 A=INSTR(1,F$,"."):IFA=0THENF$=F$+".BIN" 40 A=INSTR...
REM The program that follows is a reconstruction REM of the Oregon Trail game written for HP time-shared REM BASIC by Don Rawitsch and Bill Heinemann and Paul Dillenberger REM in 1971. Its source is an updated version published in the REM July-August 1978 issue of Creative Computing. 10 REM PROGRAM NAME - 0REGON ...
100 cls 3 110 '数秘術占い 2019.08.16 120 '改変履歴 130 '"2021.03.31 α版 画面背景アップデート" 140 '"2021.04.02 β版 更にアップデート音声追加" 150 '"2021.04.03 β2版 画面表示拡張" 160 '"2023.05.20 β3版 入力方式拡張" 170 'Version 更新履歴 180 '2023.06.04:Ver100_20230604 190 '2023.06.11:Ver101_20230611 200 '2023.06.18:Ver102_20230618 210 '2023.06.25:Ver103_202306...
10 ' ATODASHI JYANKEN ----------------- 20 ' 30 ' INITIALIZE 40 CLEAR :RANDOMIZE :OPEN "SCRN:"FOR OUTPUT AS #1 50 A=PEEK &BFC87+PEEK &BFC88*&100+PEEK &BFC89*&10000+&3C0,G=INT (A/&10000),B=A-G*&10000,F=INT (B/&100),E=B-F*&100 60 FOR I=&TO &8:Z$=Z$+CHR$ &1D:NEXT :Z$=Z$+CHR$ &1F,Z$="±²³´µ¶·¸¹"+Z$+"º»¼½¾¿ÀÁÂ"+Z$+"ÃÄÅÆÇÈÉÊË...
_TITLE "SPIRAL" SCREEN _NEWIMAGE(320, 240, 32) K = 8 DO _LIMIT 30 CLS WINDOW (-K * (_WIDTH / 2), -K * (_HEIGHT / 2))-(K * (_WIDTH / 2), K * (_HEIGHT / 2)) j = j + .5 PSET (0, 0) FOR i = 0 TO 100 STEP .1 LINE -(i * i * COS(j + i), i * i * SIN(j + i)) NEXT PSET (0, 0) FOR i...
DEF FN bulletPos(x,y)=(40+20*y+x) REM ------------------------------------ REM STATE INIT REM ------------------------------------ game_state_init: PROCEDURE REM Player position X = 2 Y = 2 REM Player's last position REM Necessary for rerendering where they were: OLD_X = 2 OLD_Y = 2 REM Fake shi...
#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 DIM LL10 11 FOR I=0 TO 1 15 P=#800 20[ 30 LDA#FD;PHA 40 LDA@4;STA#BFFF 50 JSR LL1 60 PLA;STA#BFFF 70 LDA@12;JSR#FFF4 80 JSR#F7D1;] 90 $P="ACORN ATOM + ATOMMC2" 100 P=P+L.P+1;[ 105 NOP 110 JSR#FFED;JMP#FFED 111:LL1 112 JMP (#AFFE) 115] 116 NEXT 120 END
10 DATA TACITURN, HABITUALLY UNTALKATIVE 20 DATA LOQUACIOUS, VERY TALKATIVE 30 DATA VOCIFEROUS, LOUD AND VEHEMENT 40 DATA TERSE, CONCISE 50 DATA EFFUSIVE, DEMONSTRATIVE OR GUSHY 60 N = RND(10) 65 IF INT(N/2) = N/2 THEN N=N-1 70 FOR X = 1 TO N 80 READ A$ 90 NEXT X 100 PRINT "THE RANDOM WORD IS: "A$ 110 READ B$ 120 PRINT...
Attribute VB_Name = "ESKD" Sub NewMacros1() Attribute NewMacros1.VB_Description = "Установлки стандартів Єдиної конструкторської документації " Attribute NewMacros1.VB_ProcData.VB_Invoke_Func = "Normal.ESCD.ЄСКД" Selection.Font.Name = "Times New Roman" Selection.Font.Size = 14 Selection.ParagraphFormat.Ali...
Attribute VB_Name = "FINAN_PORT_MOMENTS_DIETZ_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. '**************************************************...
1 %TITLE "Financial Statements Layout Report" %SBTTL "GL_RPRT_FINR01" %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 ...
1 %TITLE "Units of Production Journal" %SBTTL "AD_MAIN_JOURNAL" %IDENT "V3.6a Calico" FUNCTION LONG AD_MAIN_JOURNAL(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnishe...
Attribute VB_Name = "hndl_performance_output" Option Explicit Public STR_WS_NAME As String Public STR_DAILY_WS_NAME_KPI As String Public STR_DAILY_WS_NAME_ADDITIONAL As String Public Const STR_FIRST_ROW_TBL As String = "A1:U1" Public Const STR_DATA_START_RG = "A2" ' outbound Public STR_OUTBOUND_PATH As String Public...
10 REM 'PDL' TEST PROGRAM 11 GOTO 20 15 PROC PDL(X): RETURN 146 - 133 * (@X MOD 2) 20 A=FN PDL(0) 30 B=FN PDL(1) 40 PRINT "THE VALUE OF PDL(0) IS";A 50 PRINT "THE VALUE OF PDL(1) IS";B 60 PRINT "CHANGE THE CONTROL UNIT SETTINGS AND (RUN) AGAIN" 99 END
Attribute VB_Name = "genLog" Public Function getFileList(folder As String) As String() Attribute getFileList.VB_ProcData.VB_Invoke_Func = "r\n14" Dim objFSO As Object Dim objFolder As Object Dim objFile As Object Dim i As Integer Dim sheet() As String Dim sheets() As String Dim fldr As ...
' ' qbasic program to generate an acos table ' columns = 8 ' data columns FOR i = 0 TO 512 IF (i MOD columns = 0) OR (i = 0) THEN PRINT " ; "; i - 1: PRINT "DW "; ELSE PRINT ","; x = (i / 256 - 1) IF x = 1 THEN acos = 0 ELSEIF x = -1 THEN ...
Attribute VB_Name = "MOD_FileInfo" Option Explicit ' API declarations. Private Type VS_FIXEDFILEINFO dwSignature As Long dwStrucVersionl As Integer ' e.g. = &h0000 = 0 dwStrucVersionh As Integer ' e.g. = &h0042 = .42 dwFileVersionMSl As Integer ' e.g. = &h0003 = 3 dwFileVersi...
10 sq=60:GOSUB"LIB0:M6760"
DIM a$(2), station$(11), station2$(11), monthday(12), dailydata(31) DECLARE FUNCTION num (convstr$) DECLARE FUNCTION leapyear (year$) DECLARE SUB readin (station$(), a$) DECLARE SUB formatlen () DECLARE SUB formatmonth () COMMON SHARED p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, s1 COMMON SHARED d1, d2, d3, d4, d5, d...
RANDOMIZE TIMER CLS si: critical = 50000 tunits = 1000000 temp = 25 cr = 25 pres = 25 cool = 25 sii: G$ = INKEY$ G$ = UCASE$(G$) IF G$ = "A" THEN cr = cr + 1 IF G$ = "S" THEN cr = cr - 1 IF G$ = "D" THEN cool = cool + 1 IF G$ = "F" THEN cool = cool - 1 IF G$ = "Q" THEN ed = 3: GOTO ending LOCATE 1, 1 ...
DECLARE SUB App.MoveCursor (NewX%, NewY%) DECLARE FUNCTION App.LoadFile% (TargetFile AS STRING) DECLARE SUB App.DrawText (StartLine%) DECLARE SUB App.Main () OPTION EXPLICIT DEFINT A-Z '$INCLUDE: 'SOURCE\COSTALIB.BI' COMMON SHARED FileData() AS STRING COMMON SHARED CursorX, CursorY SCREEN 12 Sys.Load ...
'***** PCXSAVE.BAS - This file demostrates saveing a file using the .PCX ' file format used in PC Paintbrush 'Copyright (c), 1988 Crescent Software and Brian C. Giedt 'These DECLARE statements are for QB4.0 'These are located in PCX.QLB DECLARE SUB BankSW1 (Plane%) DECLARE SUB GetByteEGA (This%, ...
print "hello (" + PROGRAMARG$(1) + ")"
IF usercommand$(runcommands) = "app" OR usercommand$(runcommands) = "application" THEN DO FOR runcommands2 = 1 TO usercommands IF usercommand$(runcommands2) = "data" THEN speechoutput$ = "opening application data" speechprint$ = speechoutput$ GOSUB...
IF nflag = 0 THEN CALL navy((side), 0) chosit = 25
1 %TITLE "Store and Print Account Summary" %SBTTL "GL_OUTP_ACCTSUM" %IDENT "V3.6a Calico" FUNCTION LONG GL_OUTP_ACCTSUM(LONG OPT, & STRING ACCT_NUM, GFLOAT BEG_AMT, GFLOAT ACCT_AMT, & GFLOAT ACCT_UNITS, & STRING TITLE(), & UTL_REPORTX_CDD UTL_REPORTX) ! ! COPYRIGHT (C) 1991 BY ! Computer Management Cent...
' The Super Star Trek, by Antti J Ylikoski 01-07-2011 -- 05-06-2012. ' ' Adapted for the QB64 by Antti Ylikoski 05-06-2012. ' Finished corrections and bug fixes, AJY 05-11-2012. ' ' See http://qb64.net for the QB64.EXE BASIC system, which is the ' best freeware BASIC that I have come across. ' ' Start the QB64....