text
stringlengths
7
5.36M
10 REM POLSYS - SIMULATION OF CITY COUNCIL 20 REM COPYRIGHT 1971 STATE UNIVERSITY OF NEW YORK 30 REM M: STRATEGY MATRIX; S IS RESOURCE EXPENDITURE FOR CURRENT ROUND 40 REM K IS RELATIVE WEIGHTS OF RESOURCE UNITS 50 REM C IS RESOURCE EXPENDITURE BREAKDOWN BY GROUP AND TYPE X TYPE 60 REM T IS TOTAL REMAINING RESOU...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =48 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =151...
DECLARE SUB uusikausi () DECLARE SUB mor (mora%, morax%) DECLARE SUB zreseasongala () DECLARE SUB cuparpo () DECLARE SUB borsinit (init%) DECLARE SUB borsgene () DECLARE SUB tremaar () DECLARE SUB tarkistanhlc () DECLARE SUB mmkisaloppu () DECLARE SUB pisteporssimaar () DECLARE SUB mukachk () DECLARE SUB baa...
Attribute VB_Name = "excelFormatDIMData" ' ' Change the file path in this location to one that you use. ' Public Const fldrTarget As String = "C:\temp\" Sub fixWeapons() ' ' The Main Routine ' ' weaponTextToColumns weaponHideColumn buildWeaponTable Range("C2").Select ActiveWindow.FreezePanes = True ds = mkDate(...
Attribute VB_Name = "OwnerDrawn" Option Explicit DefLng A-Z Const MFT_STRING = 0 ' *************************** ' Owner drawn menus procedures. ' ' Please keep this notice with the code. ' Written by Bi Hai, 1998, thriller@163.net ' If you find this code useful, please let me know at thriller@163.net ' ...
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 ...
10 X=400 20 CLS 30 KEY OFF 40 GOSUB 490 50 A=12:B=A:C=A:D=A:E=A:F=14:G=10:H=A:I=A:J=G:K=F:L=A:M=A:N=A:O=A:P=A 60 GOSUB 350 70 A=0:GOSUB 340:E=0:GOSUB 340:I=0:GOSUB 340:M=0:GOSUB 340 80 B=0:GOSUB 340:F=0:GOSUB 340:J=0:GOSUB 340:N=0:GOSUB 340 90 C=0:GOSUB 340:G=0:GOSUB 340:K=0:GOSUB 340:O=0:GOSUB 340 100 D=0:GOS...
CLS REM "RAFASE_282" INPUT "KLK CUAL ES TU NOMBRE CRIATURA?", N$ PRINT N$, "QUIEN TE PUSO UN NOMBRE ASI NO CRES QUE ES FEO PORQUE NO LO CAMBIAS INFELIZ " INPUT "CAMBIANDO EL TEMA CUAL ES TU EDAD", A B = A * 3 IF A > 20 THEN PRINT A, "SERA", B ELSE PRINT "SI CLARO", A; "VIVIENDO POR TU CASA" INPUT "ERES HOMBRE O MUJER E...
Attribute VB_Name = "ModMain" ' Updated by :Alpa Bandekar ' Updated On :08-Feb-2013 ' Purpose :Changes done Implemented Standard coding format ' suspension database changed (AlertConfigDB) ' In CloseAlert Added the functionality of AutocloseRefTicketId When...
/* HODL Worthily Smart Contract in DVM-BASIC Not a classical "HODL Smart Contract"... The purpose Is to HODL for a given amount of blocks (so * 12 seconds to simulate the time to HODL) And to protect your DERO from a panic sale after a big FUD on Twitter. But... if you really need to access to your coins b...
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...
CLS OPEN "hat.in" FOR INPUT AS #1 OPEN "hat.out" FOR OUTPUT AS #2 INPUT #1, n sum = 0 FOR i = 1 TO n INPUT #1, tmp IF tmp >= n THEN PRINT #2, "-1" CLOSE #1, #2 END END IF sum = sum + tmp NEXT i ans = sum \ (n - 1) IF sum MOD (n - 1) <> 0 OR ans > n THEN PRINT #2, "-1" ELSE...
REDIM SHARED clicks(100) AS c, totalClicks AS LONG '$include:'../../p5js.bas' TYPE c pos AS vector button AS _BYTE END TYPE FUNCTION p5setup createCanvas 400, 400 title "Mouse buttons test" strokeWeight 2 totalClicks = -1 END FUNCTION FUNCTION p5draw backgroundB 51 strokeB 255 F...
SUB MAIN DIM S AS STRING PRINT "Reading from Google" OPEN #1,"http://www.google.com/","r" READLINE #1,S CLOSE #1 PRINT s END SUB
REM Code based on tricky's game.asm, but rather hacked about ON ERROR MODE 7:?&FE22=&40:REPORT:PRINT " at line ";ERL:OSCLI "FX229,0":END pause%=500:REM centiseconds *TV255,1 MODE 1 *LOAD CODE 900 FOR opt%=0 TO 2 STEP 2 P%=&C00 [OPT opt% LDA #&40:STA &FE22 LDA #0:TAX .loop STA &B00,X DEX:BNE loop LDA #247:LDX #0:JMP &FF...
10 open "i",1,"test.bas" 20 while not eof(1) 30 line input #1,a$ 40 print a$ 50 wend
1 %TITLE "Calculate Service Charges" %SBTTL "AR_SPEC_SERCHRG" %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 ! ...
$regfile = "m328pdef.dat" $crystal = 16000000 Do Loop
1 %TITLE "SETFLG - Set Update Flags in Folder" %SBTTL "PR_SPEC_SETFLAG" %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...
10 REM BUILD TRIG TABLE 50 PRINT "DEGREES","SINE","COSINE" 60 FOR X = 0{DEG} TO 90{DEG} STEP 10{DEG} 70 PRINT X, SIN(X), COS(X) 80 NEXT X 99 END
' math.bas ' Assemblied with PBC ' Copyright © 2018年 jadestudio. All rights reserved. hehe: TYPE DATE YEAR AS INTEGER MONTH AS INTEGER DATE AS INTEGER END TYPE TYPE TIME DATE AS DATE HOUR AS INTEGER MINUTE AS INTEGER SECOND AS INTEGER END TYPE DIM t1 AS TIME DIM t2 AS TIME DIM t3(2) AS T...
SCREEN 12 b = 10: y = 1 CLS 10 OPEN "c:\dos\basic\icons\_Yoshi4.ico" FOR RANDOM AS #1 LEN = 1 FIELD #1, 1 AS a$ FOR a = 638 TO 127 STEP -1 GET #1, a x = x + 1 IF x > 16 THEN x = 1: y = y + 1 IF y > 27 THEN CLOSE : END LOCATE y, x IF HEX$(ASC(a$)) = "99" THEN COLOR 0 ELSE ...
READ n$, m1, m2, m3 WHILE n$ <> "end" n = n + 1 m4 = (m1 + m2 + m3) / 3 t1 = t1 + m1 t2 = t2 + m2 t3 = t3 + m3 IF m4 < 60 THEN s$ = "fail" ELSE IF m4 < 70 THEN s$ = "pass" ELSE IF m4 < 80 THEN s$ = "credit" ELSE ...
!-------------------------------------------------- !- Saturday, May 20, 2017 1:33:19 AM !- Import of : !- c:\src\zelch128\extras\run.me.prg !- Unknown Machine !-------------------------------------------------- 10 REM TYPE "run" AND PRESS RETURN 20 PRINT"{clear}{cyan} The configurations on your disk include t...
dbMemo "SQL" ="SELECT DISTINCT tbl_Locations.Unit_Code, tbl_Locations.Plot_ID, tlu_NCPN_Plants." "Master_Family, tlu_NCPN_Plants.Utah_Species, Year([Start_Date]) AS [Year]\015\012" "FROM tbl_Locations INNER JOIN (tbl_Events INNER JOIN (tbl_LP_Transect INNER JOIN" " (tbl_LP_Intercept INNER JOIN tlu_NCPN_Pla...
PRINT "Hi!! My name is XRS-15 and this is MY game. " INPUT "What's Your name?"; ans$ IF ans$ = "Joao" GOTO 9 ELSE 8 9 PRINT ans$; " PLEASE READ INSTRUCTIONS!" 8 PRINT "In my game you can press any letter you like and somthing will happen!!" PRINT "If you choose to only use U, D, L, R, you can draw pictures. Press C to ...
2 graphics button "",-1 5 cls 7 let r = 5 10 graphics window 30,30,600,400 12 gosub 100 14 let x = mouse(1) 15 let y = mouse(2) 20 sprite 1 x,y 25 let m$ = inkey$ 26 if m$ = "c" then cls : goto 12 27 if m$ = "-" then sprite 1 penup : goto 25 28 if m$ = "=" then sprite 1 pendown : goto 25 30 if m$ = "r" then let r = r-1...
10 REM NECCESSARY INITIAL INFORMATION 20 DOLLARS = 500 30 PRINT " with whom do i have the pleasure" 40 PRINT " of playing high card slice?" 50 INPUT NAME$ 60 PRINT " high card wins the game!" 70 DIM SUIT$(4), CARD$(14) : FOR I=11 TO 14: READ CARD$(I) : NEXT I 80 FOR I=1 TO 4: READ SUIT$(I) : NEXT I 90 REM 100 REM *MAIN...
0010 REM Advent of Code 2019 > Day 2 > Problem 1 0020 REM --------------------------------------- 0030 REM 0040 REM Goal: 0050 REM Read a comma-separated list of integers, representing the code to 0060 REM feed to a simple interpreter. That code can override itself. 0070 REM Instructions: 0080 REM 1 A B C -- take...
' MOLEWT.BAS - 07-09-90, resurrected 2016-1002 _TITLE "Molecular Weight and % Composition" declare sub align (Tcolor, Trow, mode&, txt$) DECLARE SUB TWOHLBOX (lcol%, rcol%, trow%, brow%, fore%, back%) DECLARE SUB TWOLINEBOX (lcol%, rcol%, trow%, brow%, fore%, back%) DECLARE SUB twovlbox (lcol%, rcol%, trow%, b...
dbMemo "SQL" ="SELECT ov.ProjectID, ov.START_DATE, ov.StationID, d.StationID AS Dupe_StationID," " ov.DISPLAY_NAME, ov.[Station Name], ov.DETECTION_CONDITION, ov.RESULT_TEXT, ov." "LAB_REMARKS, ov.RESULT_COMMENT, ov.VISIT_COMMENT, ov.VALUE_STATUS, ov.Numeric_Re" "sult, SWITCH( ov.StationID = '4951260', '4...
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}{dow...
1 %TITLE "Customer Name/Address Maintenance" %SBTTL "PC_CONV_ASCIICOST" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 2002 BY ! ! Software Solutions, Inc. ! Idaho Falls, Idaho 83402 ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ...
INTRO: CLS COLOR 18 PRINT TAB(35); "JEUX D'ENIGME" COLOR 1 LOCATE 5, 5: PRINT "1) COMMENCER A L'ENIGME 1" LOCATE 10, 5: PRINT "2) QUITTER" 1 A$ = INKEY$ IF A$ = "1" THEN GOSUB DEBUT IF A$ = "2" THEN GOSUB FIN GOTO 1 REM------------------------------------------------------------------------- FIN: CLS END REM---------...
REM Demonstrates how to find an agenda to adopt an arbitrary proposal. REM cf. McKelvey "Chaos" theorem 10 CALL AddMember("A",40,30) 20 CALL AddMember("B",20,50) 30 CALL AddMember("C",60,70) 40 CALL AddMember("D",80,50) 50 CALL AddMember("E",80,30) REM Place the Proposal outside the Pareto set 60 CALL SetPropos...
Operation =1 Option =0 Begin InputTables Name ="dbo_ProjectHeader" Name ="dbo_ProjectComponentHeader" End Begin OutputColumns Expression ="dbo_ProjectHeader.DocketNum" Expression ="dbo_ProjectHeader.ExpectedCompletionDate" Expression ="dbo_ProjectHeader.AssignedDocketDueDate" Expression ="dbo_P...
REM *** COMPUTER LOCK VERSION 1.1 MODIFIED BY ERIK VAN ZIJST *** REM *** COPYRIGHT 1995 BY A.P.J. VAN LOO *** REM *** MODIFICATION OF THE PROGRAM (OTHER THAN CHANGING ACCESSCODES) *** REM *** IS NOT ALLOWED!! *** ...
10 load"test",8,1,$c000 20 vload"test2",8,1,$1000
0 REM THE BEST OF INTERFACE PAGE 12-13 10 REM BOWLING BY HARTNELL 1982 20 DIM AA(10);Y=0;G=1 30 @=0;S=0;FOR B=1 TO 10;PRINT $12;?#E1=0;FOR E=1 TO 2 40 PRINT $30;IF E=1 GOSUB b 50 PRINT"GAME: "G". FRAME: "B". BALL: "E''';Z=0 60 FOR C=1 TO 10;IF E=2 GOTO 80 70 AA(C)=CH"O" 80 IF AA(C)=CH"O" AND ABSRND%5>1 THEN AA(C)=CH"*...
10 PRINT "HELLO "; 20 GOTO 10
DEFINT A-Z REM $INCLUDE: 'RelLib.BI' SUB RelPrint (DestSeg, X, Y, Font$, Mincolor, Italic) STATIC '=======Prints system fonts on screen specified by X,Y '=======Uses 8 colors from mincolor to Mincolor+8 '=======Font$ is the string, italic? Duh!!!!! '=====Sample Code 'Note Kgen....Min are constants 'X...
CLS INPUT "Enter a number in second format"; S! day! = (S! \ 86400) week! = (day! \ 7) S! = S! MOD 86400 hour! = S \ (60 * 60) S! = S! MOD (60 * 60) minute! = S! \ 60 S! = S! MOD 60 PRINT "Day="; day! PRINT "Week="; week! PRINT "Hour= "; hour! PRINT "Minute= "; minute! PRINT "Second= "; S! END
10 REM TEST PROGRAM WITH NESTED 'NEXT' STATEMENTS 20 FOR A=1 TO 3 30 FOR B=1 TO 3 40 PRINT A;B, 50 NEXT 60 NEXT 70 PRINT "THE 'NEXT' STATEMENT PASSED THE TEST WHEN NESTED" 99 END
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...
1 %TITLE "PR Tax Package File Maintenance" %SBTTL "PR_MAIN_TAX_PKG" %IDENT "V3.6a Calico" FUNCTION LONG PR_MAIN_TAX_PKG(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This soft...
DECLARE FUNCTION Power! (x AS SINGLE, y AS SINGLE) DIM Num1 AS SINGLE DIM Num2 AS SINGLE DIM Answer AS SINGLE CLS INPUT "Enter First Number: ", Num1 INPUT "Enter Second Number: ", Num2 Answer = Power!(Num1, Num2) PRINT "The Answer Is:"; Answer PRINT STR$(158) FUNCTION Power! (x AS SINGLE, y AS SIN...
10 REM *** CONVERTED TO RSTS/E BY DAVID AHL, DIGITAL 20 REM *** CREATED BY MICHAEL KASS HERRICKS HS, NY 30 PRINT "THE OBJECT OF THIS PUZZLE IS TO CHANGE THIS:" 40 PRINT 50 PRINT "X X X X X X X X X X" 60 PRINT 70 PRINT "TO THIS:" 80 PRINT 90 PRINT "O O O O O O O O O O" 100 PRINT 110 PRINT "BY TYPING ...
100 ' EOF sample 110 OPEN "TDATA.DAT" FOR OUTPUT AS #1 120 FOR I=1 TO 10 130 PRINT #1,I 140 NEXT I 150 CLOSE 160 OPEN "TDATA.DAT" FOR INPUT AS #1 170 IF EOF(1) THEN 200 180 INPUT #1,A:PRINT A 190 GOTO 170 200 END
'#sec:Main '' demanda.bas '' 25/01/2002 bo=chr$(27)+"[1m" uo=chr$(27)+"[4m" ro=chr$(27)+"[7m" bf=chr$(27)+"[21m" uf=chr$(27)+"[24m" rf=chr$(27)+"[27m" pen on 10 dim mes(50) 11 DIM dem(50) 12 DIM CUA(5) 13 DIM MA(5) 14 DIM CES(5) 15 REM CARGA AUTOMATICA DE DEM.DAT 18 GOSUB 1600 20 cls:COLOR 9 30 PRINT bo+"DEMANDAS"+bf ...
1 CMP 5 GOTO20000 10 CLS 14 CLEAR300,&H2FFF 20 INPUT"(C)ASETTE OR (D)ISK";D$:IF D$="C"THENCLOADM"PIANO":ELSELOADM"PIANO" 40 DIMN$(12) 50 CLS:PRINT@14,"MENU":PRINT 60 PRINT" 1) COMPOSE MUSIC" 70 PRINT" 2) ADD ON TO MUSIC" 80 PRINT" 3) PLAY MUSIC" 90 PRINT" 4) SAVE MUSIC" 100 PRINT" 5) LOAD MUSIC" 110 PRINT" 6) CHA...
0000 REM Prohibitively slow on the online interpreter :( 1000 CLS 1010 ARRAY P 1020 LET P[1] = 0 1030 FOR I = 2 to 1000000 1040 LET P[I] = 1 1050 NEXT I 1060 FOR I = 2 TO 1000000 1070 IF P[I] THEN 1120 1080 FOR N = I TO 1000000 STEP I 1090 LET P[N] = 0 1110 NEXT N 1120 NEXT I 1130 LET X = 0 1140...
CLS PRINT "Введите первую строку" INPUT "", s$ s$ = s$ + " " s$ = LTRIM$(s$) PRINT "Введите вторую строку" INPUT "", d$ d$ = d$ + " " d$ = LTRIM$(d$) cd$ = d$ m = 0 result$ = "" FOR n = 1 TO LEN(s$) IF MID$(s$, n, 1) = " " THEN k$ = MID$(s$, 1, n - 1) l = 1 FOR b = 1 TO LEN(d$) IF MID$(d$, b, 1) ...
0 REM MONTE-CARLO INTEGRATOR 10 DEF FN SQUARE(X) = X*X 20 POINTS = 1024 30 COUNTER = 0 40 FOR I = 0 TO POINTS 50 X = RND(1) 60 Y = RND(1) 70 IF Y <= FN FUNCTION(X) THEN COUNTER = COUNTER + 1 80 NEXT I 90 RES = COUNTER / POINTS 100 PRINT "YOUR COMPUTATION RETURNS: " RES 110 CLR 120 END
10 LOADM"LISTENER" 20 EXEC
REM @english REM USER-DEFINED PROCEDURES DEFINITION (3) REM REM This example will show how to define an user-defined procedure and the various REM way you can call it. You can call it by using directly its name, or by using the REM keywords ''PROC'' or ''CALL'. All the way are somewhat equivalent. REM REM @itali...
!**************************************************************************** ! ! MODULE: DEAL FILE FUNCTIONS ! ! AUTHOR: STUART WILLIAM MCCONNACHIE ! ! DATE: AUGUST 2002 ! !**************************************************************************** ! ! VERSION A ...
DIM SHARED Version AS STRING DIM SHARED DevChannel AS STRING DIM SHARED AutoBuildMsg AS STRING Version$ = "2.0" DevChannel$ = "Stable Release" IF _FILEEXISTS("internal/version.txt") THEN versionfile = FREEFILE OPEN "internal/version.txt" FOR INPUT AS #versionfile LINE INPUT #versionfile, AutoBuild...
\******************************************************************** \*** ADCS POG Delta File (POGDE) \*** Version A Neil Bennett 6th June 2006 \*** \.................................................................... INTEGER*2 GLOBAL \ CURRENT.REPORT.NUM% ST...
'----- License Stuff 'This file is part of SPFLite. ' SPFLite is free software: you can redistribute it and/or modify ' it under the terms of the GNU General Public License as published by ' the Free Software Foundation, either version 3 of the License, or ' (at your option) any later version. ' ' ...
1 REM JIM STORER 2 PRINT "HOW MANY TIMES HAVE YOU PLAYED"; 3 INPUT Z 5 LET N5=8 6 REM (RANDOMIZE) 12 IF Z=500 THEN 47 14 IF Z=1000 THEN 1960 17 FOR Y1=1 TO 10 18 PRINT 19 NEXT Y1 20 PRINT "CONGRADULATIONS! YOU HAVE BEEN ELECTED PREMIER OF ETATS," 22 PRINT "A SMALL COMMUNIST ISLAND 30 BY 70 MILES LONG. YOUR J...
10 LINEINPUT"Введите текст:";T1$ 15 INPUT"Введите этот же текст";T2$ 20 PRINT"Первый раз текст воспринят как:"; :PRINT T1$ 30 PRINT"Во второй раз текст воспринят как:";:PRINT T2$ 
Attribute VB_Name = "ADGPIB" '********************************************************************* ' ' GPIB Library ' ' File: ADGPIB.BAS ' ' ' This file contains the Visual BASIC (32 bit) declarations for all ' GPIB library commands. ' ' Using an existing National Instruments program, replacing NIGLOBAL.BAS ' an...
RANDOMIZE TIMER DIM a%(32000) SCREEN 13 FOR a1 = 0 TO 1 FOR a2 = 0 TO 1 FOR a3 = 0 TO 1 FOR a4 = 0 TO 1 FOR a5 = 0 TO 1 FOR a6 = 0 TO 1 FOR a7 = 0 TO 1 FOR a8 = 0 TO 1 OUT &H3C8, a1 * 128 + a2 * 64 + a3 * 32 + a4 * 16 + a5 * 8 + a6 * 4 + a7 * 2 + a8 * 1 OUT &H3C9, (a1 + a4 + a5 + a7) * 15 + 3 OUT &H3C9, (a...
DECLARE FUNCTION OrtecString2$ () DECLARE SUB OrtecInit () DECLARE SUB OrtecString1 (a$) DECLARE SUB OrtecOut (Cmd$) DECLARE FUNCTION StripCount! (NCount!, Dat$) DECLARE FUNCTION StringCleaner$ (St$) DECLARE SUB CheckGPIB () DECLARE FUNCTION OrtecOutIn2$ (Cmd$) COMMON SHARED /params/ Ort974%, SR430%, SR620%, ...
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...
Operation =1 Option =0 Where ="(((dbo_CompanyEmployeeTask.StartTime) Is Not Null) AND ((dbo_CompanyEmployeeTask" ".EndTime) Is Null))" Begin InputTables Name ="dbo_CompanyEmployeeTask" Name ="dbo_TaskList" Name ="dbo_CompanyEmployee" Name ="dbo_ProjectHeader" Name ="dbo_ProjectComponentHeader" ...
CLS INPUT "DO YOU WANT TO RUN HsPlayer (PRESS 1) OR EXIT (PRESS 2) >", c IF c = 1 THEN SHELL "c:\hsplayer\run.exe" IF c = 2 THEN END END
10 CLEAR 32768 20 PAPER 0: INK 7: CLS : LOAD ""CODE 30 RANDOMIZE USR 32768
SUB ImportMenus (FileName$, MenuIndex%(), MenuTable%()) DIM Header AS ChunkHeader fc% = FileOPEN(FileName$, "B") CurrMenu% = 1 ImportMenusTop: Temp% = NumberOfChunks%(fc%, "MENU") IF Temp% = 0 THEN EXIT SUB REDIM MenuTable(1 TO Temp%) PreserveSeek& = SEEK(fc%) GlonkOfIndex% = 0 FOR i% = 1 TO Temp% GetAnother: G...
_TITLE "Toast" SCREEN _NEWIMAGE(640, 480, 32) DO CLEAR REDIM toasts(307200) DO _LIMIT 64 CLS k$ = INKEY$ PRINT "Enter a value to toast the bread: "; toastdeg$ IF k$ >= CHR$(32) AND k$ <= CHR$(126) THEN toastdeg$ = toastdeg$ + k$ IF k$ = CHR$(8) AND LEN(toastde...
mapfilee$ = DefaultDir$ + "\maps\" mapfile$ = mapfilee$ + "map.1" 'dim PlayerLoc(5,5) global PlayerLocX global PlayerLocY global cmd dim dummy$(1000) dim map1$(1000,1000) PlayerLocX = 30 PlayerLocY = 30 x = 0 open mapfile$ for input as #1 [loop] input #1, dummy$(x) x = x + 1 if eof(#1) = ...
12000 rem sfx for dropping a coconut 12010 poke 54296, 15: rem main vol at max 12020 poke 54277, 15*1+3: rem attack and decay, ch1 12030 poke 54278, 10*16+4: rem sustain and release, ch1 12040 poke 54276, 16+4+1: rem triangle, ring, and enable ch1 12050 rem poke 54274, 71: poke 54275, 5: rem 33% dc for ch1 12060 poke 5...
10 REM 'LINE INPUT' TEST PROGRAM 30 INPUT "TYPE YOUR NAME - LAST, FIRST "; N$ 40 PRINT "HELLO ";N$;". I'M -80, TRS" 99 END
dbMemo "SQL" ="SELECT ssd_Products.ProductID, ssd_IntentResource.IntentResourceID, ssd_IntentRe" "source.ProductIntentID, ssd_IntentResource.IntentResourceTypeID, ssd_IntentResou" "rce.DescriptiveName, ssd_ColorIntent.ProcessColorsTypeID, ssd_ColorIntent.SpotCo" "lorCount, ssd_ColorIntent.CoatingID\015\012...
1 PRINT "CRAP GAME WITH THE COMPUTER AS YOUR OPPONENT." 2 PRINT "THE RULES ARE SIMPLE:" 3 PRINT " *A 7 OR 11 ON THE FIRST ROLL WINS" 4 PRINT " *A 2, 3, OR 12 ON THE FIRST ROLL LOSES" 5 PRINT 6 PRINT "ANY OTHER NUMBER ROLLED BECOMES YOUR 'POINT'. YOU CONTINUE" 7 PRINT "TO ROLL... IF YOU GET YOUR POINT, YOU WI...
REM "https://www.qbasic.net/en/reference/qb11/Function/ASC.htm" REM "a To z" FOR i% = 65 TO 65 + 25 PRINT i%; CHR$(i%), NEXT i% PRINT ASC("98") PRINT CHR$(57)
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =11565 DatasheetFontHeight =10 ItemSuffix =...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =2 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =10230 DatasheetFontHeight =11 ItemSuffix =20 Right =1...
\******************************************************************************* \*** \*** UOD Outers File Functions \*** \*** REFERENCE : UODOTFUN.BAS \*** \*** VERSION A. Stuart Highley 11th Jul 2008 \*** \*** VERSION B. Harpal Matharu 3rd Nov...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault ViewsAllowed =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =12760 DatasheetFontHeight =11 ItemSuffix =15 Left =630 Top =30...
10 REM 'RESTORE' TEST PROGRAM 20 READ X 30 IF X=3 THEN 50 40 GOTO 20 50 RESTORE 60 READ X 70 IF X=1 THEN 100 80 PRINT "RESTORE FAILED THE TEST" 90 GOTO 999 100 PRINT "RESTORE PASSED THE TEST" 110 DATA 1,2,3 999 END
' this little hangman game by Jim Emptage ' Rouge Valley Software ' 1997 ' 75504.2526@compuserve.com ' feel free to modify the program .... have fun 66 RESTORE REDIM fred(200) AS STRING FOR p = 1 TO 200 READ fred(p) NEXT RANDOMIZE TIMER FOR jj = 1 TO 1000 ' shuffle the words in the arra...
1 CLS PRINT "Welcome to USS Iocus" PRINT "This is a 2 player game" PRINT "THe goal of the USS Iocus is to find the missing Klingon Bird of Pray" PRINT "The captain of the Iocus sets a course and tries to find the Klingon ship" PRINT "The Klingon Captian, flys his ship trying to avoid the Iocus..." PRINT PRINT PRINT PRI...
10CLS 20FOR I=20TO60 30PRINT I,CHR$(I) 40NEXT
10 RGB 255,0,0 20 delay 200 60 RGB 0,0,255 70 delay 200 80 goto 10
100 REM POLICY - NATIONAL POLICY FORMATION 110 REM CHANGES 18 INDICATORS IN RESPONSE TO WHICH OF THE 120 REM 14 PROPOSITIONS ARE PASSED. 130 REM COPYRIGHT 1972, STATE UNIVERSITY OF NEW YORK 140 REM S(X): VALUE OF INDICATOR X AT BEGINNING OF PERIOD 150 REM E(X): VALUE OF INDICATOR X AT END OF PERIOD 160 REM W(X)...
10 X$="ABCabcÅÄÖåäö" 20 FOR I=1 TO LEN(X$) 30 C$ = MID$(X$, I, 1) 40 PRINT C$; " =>"; ASCII(C$) 50 NEXT I -------- A => 65 B => 66 C => 67 a => 97 b => 98 c => 99 Å => 197 Ä => 196 Ö => 214 å => 229 ä => 228 ö => 246
Version =20 VersionRequired =20 Begin Form DefaultView =0 TabularFamily =103 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 DatasheetFontHeight =10 ItemSuffix =6 Right =13515 Bottom =7605 DatasheetGridlinesColor =12632256 RecSrcDt = Begin 0...
CLS RANDOMIZE TIMER Num = INT(RND * 101) + 100 WHILE Num <> 130 PRINT Num; Num = INT(RND * 101) + 100 WEND END
CLS '********Declerations********* TYPE STUDENT studentName AS STRING * 20 studentId AS INTEGER END TYPE TYPE GRADE studentGrade AS INTEGER END TYPE DIM continue AS STRING DIM classSize AS INTEGER DIM ctr0 AS INTEGER DIM space AS INTEGER ctr0 = 0 '********Input************ INPUT "Ent...
DEFINT C SCREEN 9 rx = 315 ry = 170 CONST DegToRad = 3.1416 / 180 FOR a = 0 TO 359 STEP 3 c = (c MOD 15) + 1 t = a * DegToRad LINE (320 + rx * COS(t), 175 - ry * SIN(t))-(320 + rx * COS(t + t), 175 - ry * SIN(t + t)), c NEXT a$ = INPUT$(1) 'WHILE INKEY$ = "" ' FOR i = 1 TO 15 ' PALETTE i, c ' c = (c + ...
5 'Анализ символов, вводимых с клавиатуры 10 ON ASC(INPUT$(1))-26 GOTO 101,102,103 101 GOTO 10 102 PRINT "Нажата клавиша WW▐":END 103 PRINT "Нажата клавиша ░WW":END 
Operation =4 Option =0 Begin InputTables Name ="dbo_ProjectHeader" End Begin OutputColumns Name ="dbo_ProjectHeader.CompanyLocationID" Expression ="1" End dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbBoolean "UseTransaction" ="-1" dbBoolean "FailOnError" ="0" dbByte "Orientation" ="0" d...
10 READ N$,A,B,C 20 PRINT N$;"'S PUNKTE SIND :";A;" ";B;" ";C 30 PRINT "UND DER DURCHSCHNITT IST :";(A+B+C)/3 40 PRINT : GOTO 10 50 DATA MIKE, 190, 185, 165, DICK, 225, 245,190 60 DATA JOHN, 155, 185, 205, PAUL, 160, 179,187
10 REM From https://en.wikipedia.org/wiki/Rugg/Feldman_benchmarks 11 REM I think this is a poor benchmark, as it does not verify correctness. 12 REM It should accumulate results, and print the final answer. 300 PRINT"S" 400 K=0 500 K=K+1 530 A=K^2 540 B=LOG(K) 550 C=SIN(K) 600 IF K<1000 THEN GOTO 500 700 PRINT"E" 800 E...
10 PRINT "HELLO WORLD" 1040 LOCATE 11,9,0:PRINT CHR$(179)+" DONKEY "+CHR$(179)
CLS RANDOMIZE TIMER x = 320 y = 240 dir = 4 ' default direction wall = 50 dlength = 0 SCREEN 12 FOR count = 1 TO 1000 CIRCLE (x, y), 3 'Calculate new direction - use if last bubble not past WALL IF dlength = 0 THEN 'diff = INT(RND * 3) - 1 IF RND > .5 THEN diff = 1 ELSE ...
10 ' PROGRAM 2 CHAPTER 6 20 CLS 25 DATA .0525, .06, .075 30 INPUT "WHAT IS THE PRINCIPLE TO BE INVESTED"; PRINCINVES 35 INPUT "WHAT IS THE TIME"; TIME 37 FOR COUNT = 1 TO 3 38 READ RATE 40 LET PRINCLANDINT = PRINCINVES * RATE * TIME 47 PRINT PRINCLANDINT 50 NEXT COUNT 60 END
10 DIM X(100) 20 DIM X(101)
5 ONERRORGOTO500 10 ANGLE1:IFx=<0 THENp=1:GOTO80 20 IFm MOD 2=0 THENz=m/(m+n*x):GOSUB100:p=1-p:GOTO80 30 IFn MOD 2=0 THENz=n*x/(m+n*x):i=m:m=n:n=i:GOSUB100:i=m:m=n:n=i:GOTO80 40 y=ATNSQR(n*x/m) 50 GOSUB200:p=p+a:IFp<0 THENp=0 80 y=p:RETURN 100 a=1:FORi=m-2 TO2 STEP-2:a=1+(n+i-2)/i*z*a:NEXT 110 p=(1-z)^(n/2)*a:RETURN 20...