text
stringlengths
7
5.36M
'********* ReadFile.Bas - demos reading a list of file names and sorting them 'Copyright (c) 1989 Ethan Winer DEFINT A-Z DECLARE SUB ReadFile (BYVAL Address) DECLARE SUB SortStr (BYVAL Address, NumEls, Direction) DECLARE FUNCTION FCount% (FileSpec$) CLS INPUT "Enter a file spec, or press Enter for *.* : ", Spec$ IF...
10 CLS 20 KEY OFF 30 A=1:B=1:X=1:Y=1 40 LOCATE A,B:PRINT"Û"; 50 H=0 60 C=STICK(0):D=STICK(1):E=STRIG(0):F=STRIG(4) 70 IF C<90 THEN Y=Y-1 80 IF C>120 THEN Y=Y+1 90 IF D<100 THEN X=X-1 100 IF D>120 THEN X=X+1 110 IF X<1 THEN X=1 120 IF X>25 THEN X=25 130 IF Y<1 THEN Y=1 140 IF Y>80 THEN Y=80 150 IF E=-1 AND...
DIM sfx$(25) c$(0) = "&hB0&h20&h23&h40&h43&h60&h63&h80&h83&hA0&HBD&HC0&HE0&HE3&hB0" c$(1) = "&hB1&h21&h24&h41&h44&h61&h64&h81&h84&hA1&HBD&HC1&HE1&HE4&hB1" c$(2) = "&hB2&h22&h25&h42&h45&h62&h65&h82&h85&hA2&HBD&HC2&HE2&HE5&hB2" c$(3) = "&hB3&h28&h2B&h48&h4B&h68&h6B&h88&h8B&hA3&HBD&HC3&HE8&HEB&hB3" c$(4) = "&hB4&h29&...
100 ' FIELD sample 110 OPEN "DATA1.DAT" AS #1 120 FIELD #1, 15 AS A$, 15 AS B$, 15 AS C$ 130 LSET A$="CAT" 140 LSET B$="Personal" 150 LSET C$="Computer" 160 PUT #1,1 170 GET #1,1 180 PRINT A$;B$;C$ 190 END
CLS INPUT "Base="; Base1 INPUT "high="; high1 Area = .5 * Base1 * high1 PRINT "Area="; Area END
DDE Example: MS Excel The following example opens a new file in Microsoft Excel and inserts some data. Please note that Microsoft Excel must be started before running this example. This example can also be found in the EXAMPLES directory (file name: ddeexcel.bas). The DDE functions are printed in red bold character...
OPTION EXPLICIT OPTION DEFAULT NONE OPTION BASE 0 OPTION CONSOLE SERIAL #INCLUDE "../INC/Frame.inc" #INCLUDE "../INC/Sprite.inc" #INCLUDE "../INC/EventTypes.inc" #INCLUDE "../INC/Event.inc" #INCLUDE "../INC/EventStep.inc" #INCLUDE "../INC/Object_types.inc" #INCLUDE "../INC/Box.inc" #INCLUDE "../INC/Animati...
DECLARE SUB allocate (pp%, pnt1%, pnt2%, pwrname1$, pwrname2$) DECLARE SUB level (lvl%, hp%, vic%, pp%) DECLARE FUNCTION load! () DECLARE FUNCTION rps$ (hand1$, hand2$, outcome%) DECLARE SUB SetEnemyStats (lvl%, ehp%, elvl%, epnt1%, epnt2%) DECLARE SUB startmenu () DECLARE SUB fight (name$, pwrname1$, pwr1$, pwrname2$,...
1 goto 1000 10 rem:::::::::::zap! 11 a = 256 : b = 2049 : c = 1003 12 if peek(b + 2) + a * peek(b + 3) >= c then 15 13 b = peek(b) + a * peek(b + 1) : on abs(b <> 0) goto 12 : end 14 a = 256 : b = peek(251) + a * peek(252) 15 if peek(b + 1) = 0 then end 16 print chr$(147) peek(B + 2) + a * peek(b + 3) : print "g...
Attribute VB_Name = "MOD_Dev_Language" Option Explicit Public blCreatingLanguage As Boolean Public strLangMod As String Public CheckDuplicates As Boolean Public Enum lt All = 1 General = 0 [Version Only] = 2 End Enum Public Sub Ul() On Error GoTo err_handle Dim X As String X = Dir(App.Pat...
Attribute VB_Name = "WEB_STRING_CONVERT_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 Type DATA_MAT_OBJ iRow A...
0v=53248:pOv+21,1:pO2040,192:fOt=12288tot+25:pOt,0:nE:pOv+39,0:n=t:b=-1:hs=0:gO9 1d$="":d$(1)="{down}":fOt=nton+36:d$=d$+d$(2+(t>12324)):rEs:pOt,s:nE:pOv,155:s=0:u=5 2a$="":?"{clear}":pOv+32,4:pOv+33,1:pOv+23,1:pOv+29,1:?"{home}"sP29)"{reverse on} {cm y}{cm u}{reverse off}{cm p}":p$="{cm +}{cm +}{cm +}{cm +}" 3pOt-2...
' Dichiara le costanti simboliche usate nel programma: CONST FALSO = 0, VERO = NOT FALSO DECLARE FUNCTION LetturaNomeFile$ () ' installa la gestione di errori, e specifica il nome della ' routine gestione errori: ON ERROR GOTO GestErr DO Ricomincia = FALSO CLS NomeFile$ = LetturaNomeFile$ ...
COLOR 15 CLS PRINT " Space Station Stella" PRINT "-----------------------------------------------------------------------------" PRINT INPUT "What is Yor Name"; e$ PRINT " It is the Year 2022, You are the Captain of the Intersteller Combat Squad. Your Job is to Protect the Space Statio...
ENABLEHSERVO2 Main ;start loop HIGH P45 Hservo [P24\15000\1000] HServo [P23\15000\1000] ;Hservowait[P24,P23] ;HIGH P45 Pause 1000; LOW P45 HServo[P24\-15000\1000] Hservo[P23\-15000\1000] ;Hservowait[P24,P23]; ;LOW P45 Pause 1000; end Goto Main
FOR z = 0 TO 7 SCREEN 7, , z, z FOR x = 0 TO 20 CIRCLE (160, 100), x * 8 + z NEXT x BEEP NEXT z DO FOR z = 0 TO 7 SCREEN 7, , z, z FOR x = 1 TO 5000: NEXT x NEXT z LOOP WHILE INKEY$ = "" ' FOR y = 0 TO 199 ' FOR x = 0 TO 319 ' PSET (x, y), INT(RND * 16) ' NEXT x ' NEXT y
SCREEN 7, 0, 0, 1 RANDOMIZE TIMER DIM a AS INTEGER DIM b AS INTEGER DIM c AS INTEGER DIM d AS INTEGER DIM dis AS INTEGER REM defining centers a = RND * 100 + 20 b = RND * 100 + 20 c = RND * 50 + 120 d = RND * 50 + 120 REM defining change position v.a = 1 v.b = 1 v.c = -1 v.d = 1 REM beginning circle DO REM first cir...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =48 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =10396 DatasheetFontHe...
DECLARE SUB ARAMA () DECLARE SUB KAYIT () BASLA: COLOR 0, 7 CLS COLOR 14, 1 LOCATE 5, 33, 0: PRINT "1--->KAYIT" LOCATE 8, 33: PRINT "2--->ARAMA" LOCATE 11, 33: PRINT "3--->LISTE" LOCATE 14, 33: PRINT "4--->SILME" LOCATE 17, 33: PRINT "5--->CIKIS" LOCATE 22, 30: PRINT "SECIMINIZ <1,2,3,4,5>" LOCATE 22, 52: I...
' Pit Drop, FreeBasic(QB console), web: http://rudih.info DIM mem(16) AS INTEGER DIM score AS LONG RANDOMIZE TIMER hiscore = 0 title: IF score > hiscore THEN hiscore = score CLS COLOR 14, 0 LOCATE 8, 30 PRINT "---PIT DROP---" LOCATE 10, 15 PRINT "Use arrow keys to move, & <Esc> to exit." LOCATE 12, 15 P...
SUB MAIN DIM W, H AS INTEGER DIM SIZE AS INTEGER DIM ANGL AS INTEGER DIM PCTS AS STRING DIM BTNW AS INTEGER DIM BTNH AS INTEGER DIM X, Y AS INTEGER DIM TXY, TX, TY AS INTEGER DIM WAIT AS BOOLEAN GRAPHICS WAIT = TRUE W = SCREENWIDTH() H = SCREENHEIGHT() SIZE = 300 FOR ANGL=0 TO 360 SETCOLOR 40,41,7...
Attribute VB_Name = "Functions" Attribute VB_Description = "Math Functions not available in the standard VB library. Devised & coded by John Trenholme." ' ' _______ _. ' | ______) _ (_) ' | |___ _ _ ____ ____ _| |_ _ ___ ____ ___...
10 CLS 20 D$=DATE$ 30 DD = VAL(LEFT$(D$,2)) 40 MM= VAL(MID$(D$, 4,2)) 50 YY = VAL(RIGHT$(D$, 2)) 60 RR = VAL(MID$(D$, 7, 2)) 70 IF DD < 3 THEN DD = DD+12 ELSE GOTO 90 80 YY = YY -1 90 MM= FIX((MM+1)*2.61) 100 DOW = DD+MM+YY+(FIX(YY/4))+6 105 PRINT DOW 110 INPUT "What is your budget for this week? ",A 120 IN...
10 REM written and tested in SmallBasic 20 REM modified for Tinycat 2017-01-22 [B+=MGA] 30 REM ===================== title and instructions 40 PRINT " Where Is Kitty ? 2015-02-25 B+ mod for Tinycat BASIC 2017-01-22" 50 PRINT " 10 rooms (numbered 0 to 9) kitty walks +/- 1 between guesses." 60 PRINT " Usually (80% of ...
10 REM 20 INPUT"Wort : ",W$ 30 INPUT"File : ",F$ 40 LET N=0 50 PRINT 60 OPEN "i",#1,F$ 70 IF EOF(1) THEN GOTO 140 80 LINE INPUT #1,Z$ 90 IF INSTR(Z$,W$) THEN GOTO 110 100 GOTO 70 110 PRINT Z$ 120 LET N=N+1 130 GOTO 70 140 CLOSE #1 150 PRINT 160 PRINT W$;"steht in ",N;" Zeilen von ";F$ 
100 DEFINTA-Z:SCREEN5:COLOR15,0,0:CLS 110 BLOAD"IMAGE1.SC5",S:COLOR=RESTORE 120 Y=0 130 VDP(24)=Y:Y=(Y+1)AND255:GOTO130
' *** ELFController.bas ************************* #PICAXE 14M2 #NO_DATA SYMBOL ELFClear = B.2 SYMBOL ELFWait = B.1 SYMBOL SpeedHigh = C.1 SYMBOL SpeedLow = C.0 SYMBOL DataHigh = B15 SYMBOL DataLow = B14 SYMBOL ELFMode = B13 SYMBOL ELFModeReset = %100 SYMBOL ELFModeLoad = %000 SYMBOL ELFModeWait = %010 S...
Version =20 VersionRequired =20 PublishOption =1 Checksum =861243230 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 ScrollBars =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 Cycle...
10 a$(0)="N":a$(l)="M":a$(2)="V" 20 x$="":l=rnd(1)*20+1 30 for j=1 to l 40 x$=x$+a$(rnd(1)*3):next 50 for j=l to 999/l:print x$;:next 60 get x$:if x$="" then 60 70 run
PRINT "Gib die höchste Zahl ein:" INPUT A PRINT (A*(A+1))/2
'INITIALIZE FIRST ROOM 10 CLS 11 GOTO 1000 'TEXT PARSER 'DISPLAY 100 LOCATE 15,1 101 PRINT "-----------------------------------------------" 110 PRINT "What will you do ? " 111 INPUT ACTION$ 'VERBS 'ENTRY ROOM 'DESC' 1000 ROOM = 1 1001 PRINT "You are in a dimly li...
1 %TITLE "Convert from Version 3 to 3.5" %SBTTL "PD_CONV_3TO35" %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 ...
Version =20 VersionRequired =20 Begin Form AutoResize = NotDefault RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 Gri...
CLS DIM courses$(11) DIM creditUnit(11) DIM examScore(11) DIM testScore(11) courses$(1) = "COM113" courses$(2) = "COM112" courses$(3) = "COM101" courses$(4) = "SAT111" courses$(5) = "SAT112" courses$(6) = "MTH111" courses$(7) = "MTH112" courses$(8) = "GNS1...
Attribute VB_Name = "FINAN_PORT_RISK_LEVERAGE_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. '********************************************************...
DEFINT A-Z '$DYNAMIC DECLARE SUB ReplacePlayer () DECLARE SUB LoadExchange (FileName$) DECLARE SUB LoadTalk (FileName$) DECLARE FUNCTION FileOPEN% (FileName$, Mode$) DECLARE SUB DoBox () DECLARE SUB Epilogue () DECLARE SUB EnsueBattle () DECLARE SUB SetBattle (batnum%, enum%) DECLARE SUB delay (DelTime!) REDIM SHARE...
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault RecordSelectors = NotDefault AutoCenter = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault SubdatasheetExpanded = NotDefault AllowUpdating =3 ScrollBars =2 Pictu...
25 GOTO 40 30 RESUME 40 PRINT "NOMONC.1.0" 70 GOTO 90 75 BELL = 768 80 TEXT : HOME 90 HOME 100 PRINT "1- QUOTE" 110 PRINT "2- CHANGE RATES" 120 PRINT "3- EXIT" 130 PRINT "WHICH " 135 GET QW: PRINT QW: IF QW < 1 OR QW > 3 THEN CALL -958: GOTO 130 140 IF QW = 2 THEN GOSUB 2738 150 IF QW = 3 THEN END 160 TEXT 170 REM ####...
1 %TITLE "Convert from RSTS/E to VMS" %SBTTL "GL_CONV_CONVERT_01" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with...
1 REM COMPUTES FIRST BOOK OF 64 GAMES 1983 2 REM CONVERTED TO X16 3 MAKE YOUR OWN ALPHABET 5 REM DISABLE INTERRUPTS AND REVEAL CHARACTOR ROM? 10 REM POKE AND PEEK 20 REM POKE AND PEEK 25 COPY CHARACTER SET TO RAM 29 PRINT "PLEASE WAIT 30 SECONDS" 30 FOR I=0 TO 2048 40 REM POKE AND PEEK 50 NEXT I 55 REM COVER UP CHARACT...
' Jungle Raoul in The Quest for the Sapphire Ampersand ' ' 1996 Zack Johnson (nobody@bslnet.com) ' ' This is my first submission to ABC. ' It isn't very well commented, but at the beginning of ' each SUB, there's a skeletal description of what the SUB ' does and how it works. DEFINT A-Z ...
Attribute VB_Name = "CodeANALYZE4" ' (c) Copyright 1995-2023 by John J. Donovan Option Explicit ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ' in the Software without restriction, including without limita...
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...
#COMPILE EXE #DIM ALL #DEBUG ERROR ON #RESOURCE "RenameAndCopyFiles.pbr" #INCLUDE "comdlg32.inc" #INCLUDE "win32api.inc" #INCLUDE "DOPS_PB_CBW.INC" #INCLUDE "DOPS_ExperimentInfo.inc" #INCLUDE "DOPS_Utils.inc" #INCLUDE "DOPS_Statistics.inc" %MAXPPS_SIZE = 2048 %LISTBOX_FILES = 1005 %BUTTON_LOCATEHDR = 1006 %BUTTON_...
10 REM AGD TITLEVIEWER 11 DIM C 100 12 REM: DETECT ECONET 13 E=0 14 Z=!16 15 $C="GOTO 20" 16 ?16=C;?17=C&#FFFF/256 17 REM: ISSUE ECONET-ONLY COMMAND 18 *ROFF 19 E=1 20 ?16=Z;?17=Z&#FFFF/256 30 P.$12;?#E1=0 40 P." AGD TITLE VIEWER V1.0";GOS.a 50 P.''" THIS PR...
SCREEN 13 PRINT : PRINT " "; FOR x = 1 TO 99 COLOR x PRINT " "; x; PRINT "Û"; NEXT x
rem addr 211 - current cursor column rem addr 214 - current cursor row 10 poke 53280,6 : poke 53281,6 : print chr$(147) 15 print chr$(5) 20 poke 214,6 : print : poke 211,7 30 print "ursa major" 40 data 8,25,12,18,13,11,13,14,13,27,16,7,16,21 50 number=7 60 for n=1 to number 70 read y,x 80 poke 214,y : print : poke 211,...
20 CLS: Locate 1,2 : Print "TOURIER ANALYSE" 22 Locate 3,2 : Print "1.EXAMPLE " 24 Locate 4,2 : Print "2 EXAMPLE " 26 Locate 5,2 : Print "3.EXAMPLE " 28 Locate 7,2 : PRINT "INPUT 1/2/3" 29 Locate 9,2 : PRINT "END" 30 INPUT N 31 IF N<1 OR N>3 THEN Stop If N=1 Then 100 : If N=2 Then 200 : If N=3 Then 300 Rem 3...
0 REM ************************ 1 REM * - CCESOFT - * 2 REM *OTTO LONGO SERNATINGER* 3 REM * VERSAO 1.1 04/85 * 4 REM ************************ 5 REM * TIRA-LETRAS * 6 REM ************************ 10 HOME : PRINT : PRINT TAB( 11)"- CCESOFT -": INVERSE : PRINT : PRINT TAB( 10)"TIRA-L...
10 CLEAR 200:T$=SPACE$(198):B$=STRING$(2,"#"):PRINTB$;:CLEAR1:X$=STRING$(1,"L"):PRINT FRE("") 
DIM SHARED PI AS _FLOAT DIM SHARED Degrees AS _FLOAT DIM SHARED ScreenWidth AS _UNSIGNED INTEGER DIM SHARED ScreenHeight AS _UNSIGNED INTEGER DIM Colr AS _UNSIGNED LONG ScreenWidth = 800 ScreenHeight = 600 SCREEN _NEWIMAGE(ScreenWidth, ScreenHeight, 32) PI = 3.141592654 Degrees = PI / 180 DO _LIMIT 30 LINE (...
Attribute VB_Name = "mUnzip" Option Explicit Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _ lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long) ' argv Private Type UNZIPnames s(0 To 1023) As String End Type ' Callback large "string" (sic) Private Type CBChar ch(0 To 32800) As...
10 ON ERROR GOTO 100 20 N = 100 25 D = 0 30 R = N / D 40 PRINT R 99 STOP 100 PRINT "DIVIDE BY ZERO" 110 D = 1 120 RESUME 999 END
10 REM ABM COMMAND 11 REM COPYRIGHT (C) 1981 BY 12 REM ARNOLD E. VAN BEVERHOUDT,JR 20 CLS:PRINT"3...";:CLEAR500:DIMR$,C5$:PRINT"2..."; 25 DIMK(255),C$(2),A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,Q,R,S,T,V,W,X,Y,Z,AM,I0,II,I9,B2,X1,X2,Y2,X2,X3,IM,TT,TD,U1,U2,U3,U4,BV,DL,ST 30 K(13)=1:K(87)=2:K(68)=3:K(88)=4:K(65)=5:K(81)=6:K(69)=7...
Attribute VB_Name = "MOD_SetProperFonts" Option Explicit Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long Private Declare Function GetThreadLocale Lib "kernel32" () As Long Private E...
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
Version =20 VersionRequired =20 PublishOption =1 Checksum =-870149350 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault CloseButton = NotDefault DividingLines = NotDefault ...
10 REM RANDOM DIAGONAL MAZE 20 FOR X = 0 TO 71 30 PRINT CHR$(RND(1)+189.5); 40 NEXT X 50 PRINT 60 GOTO 20
REM @english REM BUFFERS MANAGEMENT LOADING FROM FILE (2) REM REM This small example will show the management of "aliasing", REM i.e. when the same file is loaded more than once (currently, REM it is loaded once). REM REM @italian REM GESTIONE DEI BUFFER CON CARICAMENTO FILE (2) REM REM Questo piccolo esemp...
10 REM THIS IS A SPEED TEST 20 REM IT FILLS THE SCREEN 30 REM WITH "A" THEN "B" ETC 40 REM TO "Z" THEN STOPS 50 CLS 60 L=65 70 FOR Y=1 TO 26 80 FOR I=0 TO 510 90 PRINT @I,CHR$(L); 100 NEXT I 110 L=L+1 120 NEXT Y 130 END
/* simple */ simple: assertion; /* right function */ style: contains("font-family"); /* left function */ attribute(alt): true; /* Regex */ title: /github/i; /* subject transformations */ attribute(alt).flesch-kincaid-reading-ease: gte(80); text.rot13.rot13(1).rot13: hypothetical; /* negated Regex */ title: !/gith...
SCREEN 12 TYPE Stjerna XPos AS INTEGER YPos AS INTEGER Speed AS DOUBLE Colour AS INTEGER END TYPE RANDOMIZE TIMER DIM Star(1 TO 50) AS Stjerna FOR X = 1 TO 50 Star(X).XPos = RND * 640 + 1 Star(X).YPos = RND * 10 + X * 8 Star(X).Speed = (RND * 1000) * ....
DEFINT A-Z DECLARE SUB anim (hp%) DECLARE SUB loadpal (filename$) DECLARE SUB savePal (filename$) RANDOMIZE TIMER SCREEN 13 DIM m(-1 TO 32, -1 TO 32) loadpal "game.pal" filename$ = "Lars.chr" name$ = "Lars" hp = 30 'Hit points at = 5 'Random attacking df = 5 'random points taken off sp = 5 ...
471 REM .....enter data in boxes..... 481 DIM R$(8),X$(20) 491 Z$=" " 501 Z$=Z$&Z$ 511 Z$=Z$&Z$ 521 H$=SEG(Z$,1,50) 531 PAGE 535 IF P3=1 THEN 1071 541 MOVE 15,96 551 PRINT H$ 561 PRINT 571 PRINT " Enter:" 591 PRINT " 1) to enter heading" 601 PRINT " 2) to enter box data" 611 PRINT " 3)...
DEFLNG A-Z REM $Option: WinCON REM $INCLUDE: 'CommDlg.Dec' DIM cc AS ChooseColor DIM ca(0 TO 15) AS LONG DIM Rc COLOR 11: CLS PRINT "Common Dialog Sample Program - ChooseColor" PRINT ' initialize structure cc.lStructSize = LEN(cc) ' length of this structure cc.hwndOwner = 0 ...
10 REM TEST OF CONTINUE 20 PRINT "TEST STARTS" 30 BREAK 40 PRINT "TEST ENDS" 90 STOP 99 END
0 REM *Assembler* 1 POKE546,43:POKE547,15:POKE11,233:POKE12,255 2 G=16:G1=256:G2=4096:ER$="Bad data" 3 CL$=CHR$(26):PRINTCL$ 4 FORI=1TO40:H$=H$+CHR$(135):NEXT 5 DIMC$(G1),U(G1),L$(G) 6 PRINTTAB(230)"Wait a few seconds" 7 FORE=0TOG1-1:READC$(E),U(E):NEXT 8 FORE=0TOG-1:READL$(E):NEXT 9 PRINTCL$:PRINT:PRINT:PRIN...
01 REM *********************************************************************** 02 REM 03 REM 68k-MBC User led and key demo (CP/M-68K CBASIC (C68) Basic Compiler) 04 REM 05 REM Blink USER led until USER key is pressed 06 REM 07 REM *********************************************************************** 08 REM INTEGER EX...
1list 2dimaa$(20) 3rem input"hallo";aa$(4) 4print"aa$:",aa$(4) 10 OPEN 1, 1, 1, "TESTDATEI" 20 PRINT#1,"1. Datensatz" 30 PRINT#1,"2. Datensatz","(nach 10 Zeichen Abstand) wird fortgesetzt"; 40 PRINT#1," wird noch fortgesetzt" 50 PRINT#1,"3. Datensatz"+CHR$(13); 60 PRINT#1,"4. Datensatz" 70 CLOSE 1 100 print"----------...
DECLARE SUB mal (x, y, text$, f) GOSUB ram END ram: SCREEN 12 CLS PAINT (1, 1), 7 mal 50, 100, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-", 4 mal 100, 20, "aEXERCITE LATINUM", 0 COLOR 15 PRINT "" RETURN SUB mal (x, y, text$, f) DRAW "s2 bm" + STR$(x) + "," + STR$(y + 20) + "c" ...
IF usercommand$(runcommands) = "my" THEN DO FOR runcommands2 = 1 TO usercommands IF usercommand$(runcommands2) = "computer" THEN speechoutput$ = "opening my computer" speechprint$ = speechoutput$ GOSUB textprint GOSUB speechoutput ...
'**************************************************************** '***** ARRAKIS MAIN MENU FILE, AND RMG INCLUDED AS S12.BAS ***** '**************************************************************** 'COPYRIGHTED BY STEFAN HENDRIKS '**************************************************************** '***** ARRAKIS MAIN MEN...
SCREEN 12 WINDOW (0, 0)-(639, 479) LINE (0, 0)-(639, 439), 0, B INPUT ; "Nazwa pliku "; nazwaPliku$ nazwaPliku$ = LEFT$(nazwaPliku$, 8) 'odczytuje OPEN nazwaPliku$ + ".gft" FOR INPUT AS #3 INPUT #3, RozmiarX, RozmiarY miejsceX = 20 miejsceY = 40 szerokoscZapis = CINT((620 - miejsceX) / (RozmiarX + 1)) - 1 dlugoscZap...
100 PRINT USING "!";"CAT COMPUTER" 110 PRINT USING "& &";"CAT COMPUTER" 120 PRINT USING "#####";123.456 130 PRINT USING "#####.#";123.456 140 PRINT USING "+####.#";123.456 150 PRINT USING "#####.#-";-123.456 160 PRINT USING "**###.#";123.456 170 PRINT USING "\\###.#";123.456 180 PRINT USING "**\##.#";1...
REM >>>MALAQUIAS BASIC-PLUS-PLUS-LIBRARY<<< REM Created by Joshua Beck. REM Version 3.0.2 REM Released under the GNU General Public Licence revision 3. PRINT "This is a library and not for direct use!" END ANCITEXT: GOSUB SAVEVAR ink c W = X POKE Y 65430 CURSPOS X Y POKE X 65431 DO IF X > W THEN X =...
REM @english REM STRING MANIPULATION AND SEARCHING INSIDE (1) REM REM This example shows how to look for a string inside another string, by using REM the function ''INSTR''. Moreover, it return the starting position of the string REM inside the other, or 0 if there is no such position. REM REM @italian REM MANI...
DECLARE SUB joyinit () DECLARE SUB joystatus (x%, y%, choice$) DECLARE SUB eraseplain (zx%, zy%, byteposition&, currentscreen%()) DECLARE SUB caves (zx%, zy%, currentscreen%(), xscreen!, yscreen!) DECLARE SUB forestdraw (zx%, zy%, currentscreen%(), xscreen!, yscreen!) DECLARE SUB DrawRivAndRoads (squaretype%, xscr...
1 %TITLE "Accounts Payable Register Report By Location" %SBTTL "AP_RPRT_REG_BYLOC" %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...
4 RUN 100 20 GO TO 690 100 INIT 110 PAGE 120 DIM E$(10000),L$(405),X$(1600),M$(4000) 130 REM L$ IS THE LOADER 140 L$="" 150 REM E$ IS THE DESTINATION STRING 160 E$="" 170 REM X$ IS THE MUZAKT PROGRAM 180 X$="" 190 REM M$ IS THE MUSIC STRING 200 M$="" 210 L$=L$&";=:9>730<6448608:105265;:10:2657>>0;<624:" 220 L$=L$&"60...
CLS PRINT "COM ET DIUS" INPUT NOM$ END
10 PRINT TAB(34);"BOWL" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 270 DIM C(15),A(100,6) 360 PRINT "WELCOME TO THE ALLEY" 450 PRINT "BRING YOUR FRIENDS" 540 PRINT "OKAY LET'S FIRST GET ACQUAINTED" 630 PRINT "" 720 PRINT "THE INSTRUCTIONS (Y/N)" 810 INPUT Z$ 900 IF Z$="...
Attribute VB_Name = "MOD_Cpanel" Option Explicit Enum enmCpanelType [Control Panel] = 0 [Accessibility Properties] = 1 [Add/Remove Programs] = 2 [Display Settings] = 3 [Internet Properties] = 4 [Joystick Settings] = 5 [Mouse Settings] = 6 [Keyboard Settings] = 7 [Multime...
10 PRINT "PROGRAM FILE 160: ERROR - FUNCTION DEFINED MORE THAN ONCE." 20 PRINT " ANSI STANDARD 16.4" 30 PRINT 40 PRINT "SECTION 160.1: ERROR - FUNCTION DEFINED MORE THAN ONCE." 50 PRINT 60 PRINT "THIS SECTION TESTS WHAT HAPPENS WHEN A USER FUNCTION IS" 70 PRINT "DEFINED MORE THAN ONCE IN THE SAME PROGRAM." 80 PRINT ...
'play scale in 7 different octaves SCALE$ = "GFD#DC" PLAY "T60" FOR I% = 0 TO 1 PLAY "X" + VARPTR$(SCALE$) NEXT I% 'PLAY SCALE IN 7 DIFFERENT OCTAVES SCALE$ = "DFEGFDAGA#AD" PLAY "T250" FOR I% = 0 TO 2 PLAY "X" + VARPTR$(SCALE$) NEXT I%
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...
Attribute VB_Name = "modPacker" Option Explicit Public oThunVB As ThunderVB_base Public oMe As plugin Public Const PLUGIN_NAME As String = "Packer" Public Const MSG_TITLE As String = PLUGIN_NAME Public Const APP_NAME As String = PLUGIN_NAME Public Const PLUGIN_NAMEs As String = "Packer" Public Const MSG...
DIM x AS INTEGER DIM y AS INTEGER SCREEN _NEWIMAGE(600, 600, 256) CLS y = 0 FOR x = 0 TO 299 LINE (299 - x, 299 - x)-(300 + x, 300 + x), x - y, B IF y = 3 THEN y = 0 END IF y = y + 1 NEXT x SLEEP
Operation =1 Option =0 Begin InputTables Name ="dbo_ProjectComponentPricingDetail" End Begin OutputColumns Expression ="dbo_ProjectComponentPricingDetail.ProjectComponentID" Alias ="DC" Expression ="Sum(Val([DirectCosts]))" Alias ="IC" Expression ="Sum(Val([IndirectCosts]))" Alias ="TMC" ...
10 for i=-8 to 8 20 x=1+1/3 : y=1 : j=i 30 for j=i to -1 : x=x/10 : y=y/10 : next 40 for j=i to 1 step -1 : x=x*10 : y=y*10 : next 50 print x,y 60 next
0 CLS:CLEAR250:DIMC1,CC,ZZ,MC:MC=16384:GOTO10 1 C1=1:CC=32 2 IFMID$(M$,CC,1)<>""ANDMID$(M$,CC,1)<>" "THENCC=CC-1:GOTO2 3 ZZ=CC-C1:PRINTMID$(M$,C1,ZZ);:GOSUB9:PRINT:ZZ=C1:C1=CC+1:CC=C1+31:IFC1<=LEN(M$)THEN2 4 RETURN 5 PRINTTAB(INT((32-LEN(M$))/2));M$:RETURN 8 PRINT@C1,M$;:C1=C1-1:FORZZ=1TOLEN(M$):CC=MC+C1+ZZ:POKECC,PEEK...
10 REM *** ORIGINALLY WRITTEN IN FOCAL BY MARY COLE 20 REM *** CONVERTED TO BASIC-PLUS BY DAVE AHL 30 RANDOMIZE 50 PRINT "THIS PROGRAM AUTOMATICALLY COMES UP WITH TELEVISION" 60 PRINT "SHOWS GUARANTEED TO APPEAL TO THE MASSES AND WIN" 70 PRINT "HIGH NEILSEN RATINGS."\PRINT 80 PRINT "HERE IS THE FIRST PLOT:" 100 ...
10 OPTION BASE 0 20 DIM A%(6%) 30 FOR I% = 0% TO 6% 40 LET A%(I%) = I%*10% 50 NEXT I% 100 ARR B% = REV1%(A%) 110 GOSUB 800 120 OPTION BASE 1 130 ARR B% = REV1%(A%) 140 OPTION BASE 0 150 GOSUB 800 790 STOP 800 REM PROCEDURE A 810 PRINT "ARRAY A" 820 ARR PRINT A% 830 PRINT "ARRAY B" 840 ARR PRINT B% 890 RETURN 999 END
Attribute VB_Name = "mdlResFile" Option Explicit 'fN = 3000 -> ReadRegFile 'fN = 3001 -> AddText 'fN = 3003 -> GetsText Private Const mdlName As String = "mdlResFile - " Private Const ub As Integer = 32767 Private Type strLens lStart As Long lLong As Long CharSet As Long End Type Private Type ...
1 DIM c(4) 10%listen #4,2000 20%control #5 30 PRINT #5;"p" 40 PRINT "Waiting..." 45 INPUT #5;a;a$ 50 IF a<>0 THEN GO TO 200 60 LET a$=INKEY$ 70 IF a$="x" THEN GO TO 700 80 GO TO 45 200 IF a=4 THEN GO TO 400 210 IF a$="disconn" THEN GO TO 600 220 INPUT #a;c$ 230 PRINT "Strm ";a;": ";c$ 240 IF c$="rnd" THEN PRIN...
SUB CROSSPLOT(NP AS INTEGER, XARRAY(1) AS DOUBLE, YARRAY(1) AS DOUBLE) DIM LEFT, RIGHT, TOP, BOTTOM AS INTEGER DIM NX, NY AS INTEGER DIM W, H AS INTEGER DIM XDELTA, YDELTA AS DOUBLE DIM XPOS, YPOS AS DOUBLE DIM I AS INTEGER DIM S AS STRING DIM BORDER AS INTEGER BORDER = 40 TOP = BORDER BO...
' Enlarged character Array version | IchigoJam BASIC 1.2.0 ' Copyright (c) 2016 Keiichi Shiga (BALLOON | FU-SEN) ' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2016 10 'カクダイモジ モジレツバン 20 CLV 30 CLS 40 LET D,"Ichi go Jam" 50 FOR O=0 TO 11 60 LET X,O%4 70 LET Y,O/4 80 LET I,ASC(D+O) 90 FOR V=0 TO 7 100 LET...
-- Test left$ 10 print "ErrorCase len < 0 => "; left$("error",-1)
IF usercommand$(runcommands) = "windows" THEN speechoutput$ = "opening Windows folder" speechprint$ = speechoutput$ GOSUB textprint GOSUB speechoutput SHELL _DONTWAIT _HIDE "start shell:Windows" usercommands = -1 END IF
10 memory 24800 11 MODE 0 12 load "8bp2.bin" 13 on break gosub 300 20 CALL &6B78 30 INK 0 , 12 :INK 1 , 15 :INK 2 , 3 :INK 3 , 0 :INK 4 , 26:INK 5 , 26 40 INK 6 , 26 :INK 7 , 26 :INK 8 , 20 :INK 9 , 20 :INK 10 , 20 :INK 11 , 20 50 INK 12 , 14 :INK 13 , 14 :INK 14 , 14 :INK 15 , 14 60 |PRINTSP,32,2 70...
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...