World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.005s
<1234567…34>
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    I have spent all 26 letters (dim a.....dim z). You mean I can use string array "dim a$" in place of "dim a" ? Is there a relation between "dim a$" and "dim a" ? Why Basic has only 26 numeric variables? :-(
    vladisek vladisek October 2007 Sinclair Basic
  • appending data while saving to tapeBefore trying to do this I just wanted to check if there's a possibility that it might actually work. I have a number of string arrays which I want t…

    ... . I have a number of string arrays which I want to ... to me, which is to DIM the arrays first thing so ... would be interspersed with the string array headers but that's no ...
    Battle Bunny Battle Bunny September 2012 Development
  • SpecBAS 0.802 Released!Hi folks - It's that time again when I release the latest round of features and bugfixes to SpecBAS :) New for this version are ZONEs which act ver…

    ...
    JOIN$ function takes a string array and a separator - LET b ... : DIM a$(SPLIT "my|test|string", NOT "|") will split the string into an array ... an extra index to a string array reference wasn't parsed as ...
    Dunny Dunny February 2014 Sinclair Basic
  • SpecBAS 0.830 Released!Hi guys - A new official release of SpecBAS has been released. The full changelog is below, but for now here's the download: [url]https://sites.goo…

    ... />
    FILTER [ERASE] array$(),m$ removes or isolates string array items that match ... $]] will fill an array with a value or string depending on type ... /> DIM SPLIT arrays created empty arrays in some circumstances
    Array keys ...
    Dunny Dunny February 2015 Sinclair Basic
  • SpecBAS 0.844 releasedHi all - it's been a while... Having some unexpected extra time off work, I've been able to get some work done on SpecBAS and it's now a bit more …

    ... their status
    DIM can now create multiple ... arrays - DIM a$(),b(2,4), ... /> Assigning a string to a sliced string array member works properly now ... string array assignments
    FILTERing a string array with an empty match string ...
    Dunny Dunny May 2015 Sinclair Basic
  • "ZX80 Brain" RPN CalculatorIt is at times like [url=https://www.worldofspectrum.org/forums/discussion/54176/depression]when threads such as this are posted[/url] that I get the…

    ... seem excessive to define an array - DIM z(90) - with 90 values ... to be held in a string and that makes it harder ...
    The Mighty Dopethrone The Mighty Dopethrone March 2017 Sinclair Basic
  • SpecBAS 0.900 ReleasedAgainst my better judgement, here's 0.900. It's got lots and lots new, but mostly the new shiny is the editor. You can indent your code, you can e…

    ... Optimisation to IF/ELSE addressing string characters
    Reduced CPU ... square editor fonts
    DIM SPLIT can now split ... characters to the source string
    DIM works with a ... /> Crash when accessing a string array's cached index
    ...
    Dunny Dunny April 2017 Sinclair Basic
  • why cant i do this in a dimensional array?let m$(20)=m$(20)+"hello" it wont add it to the string/array m$(20)

    let m$(20)=m$(20)+"hello"

    it wont add it to the string/array m$(20)
    digital digital December 2017 Development
  • Need some help making a BASIC gameI'm creating a text adventure in 128 BASIC (I don't like using the 'keywords' in 48 BASIC - It's slow and annoying!) called "The Legend of The Red Dr…

    ... should be parsing the input string into a series of tokens ... then comparing these to an array (DIM). Then you match the input ... to the strings in this array and then perform an action ... based on the array index.

    Something along ...
    cyborg cyborg November 2004 Sinclair Basic
  • How do I save?I've made a HUGE text adventure with lots of collectables and lots of locations, but how can I get the user to save their game to tape if they need t…

    ... easier to set up a string array for the player's inventory ... could set up a number array and use a series of ... then use :-

    5 DIM I(10): REM you can ...
    Ian Hamilton Ian Hamilton December 2005 Sinclair Basic
  • +3e file manager program/projectFirstly let's get one thing sorted. This program/project is written entirely in basic, as I am a lamo who doesnt know enough M/C. It really Is'nt th…

    ... send the output to a string array, which is easier to handle ... . For example:

    [B]DIM a$(4000)[/B]
    [B ... that was written to the string into the variable [B]l ... you can manipulate the string using standard string-splicing techniques.

    glancaster glancaster April 2006 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... numeric variables for use (dim A, dim B,....dim Z), but now I ... need 27. numeric variable, not string array. Any trick??
    vladisek vladisek October 2007 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... ]Ok I need 27. numeric array: dim letter[8]=1,2,3 ... /> a$[8] is a string array - an array of characters.
    a[8 ... ] is a number array.

    Can you post ...
    monty.mole monty.mole October 2007 Sinclair Basic
  • A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …

    ... />
    REM Declares an initialized array:
    DIM A(1, 3) => ... a will be used as string
    LET a = "Hello": ... full of a lot of string slicing operations so I ... free() request.

    Indeed, String concatenation, assignation and [I]procustean ...
    boriel boriel June 2008 Development
  • A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …

    ... want to define a string array containing the first 8 ... br />
    Well, string arrays are not exactly the ... BASIC ones. Here each string might have a different ... :
    [code]
    DIM UDG$(6)
    FOR i ... can declare a single string and use string [i]slicing[/i ...
    boriel boriel June 2008 Development
  • Multi Dimension String Arrays.Ok so I've been playing with Sinclair Basic though BASIN and I'm wanting to use multi dimension string arrays, if it is possible. I know what when a…

    ... parameter always specifies string length, so

    DIM a$(10,10 ... set up a a 10x10 array of strings, each of which ... with the third dimension index. String arrays don't work like ... this also mean a 4D string array is possible?
    Scottie_uk Scottie_uk August 2010 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... sting is moved to a string array it becomes fixed length and ... PRINT LEN a$
    120 DIM b$(1,30)
    130 ... PRINT LEN a$
    120 DIM b$(1,30)
    130 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • storing level datahi everyone im using arrays to store level data. its not working. just to set up the walls takes an array of size 92*2 is there a better way?

    ... it then using a numeric array could be wasteful in memory ... is to use a character string array (if that feels more comfortable ... example:

    [CODE]100 DIM L$(100,1)
    110 ...
    Paddy Coleman Paddy Coleman September 2010 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... WibbleBibble;649808]So with an array whats faster for basic to ... work with a array of strings or a numeric ... array if i have data ... used either as a numeric array or i could just ... put them in a char array.[/QUOTE]

    Here' ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... can be used wherever a string array expression could be used; ... compare the standard array method with the virtual array methods, where ...
    [code]
    Initialise (standard): DIM a$(d1[,d2...,dn])
    array a$() does not exist; a$ is just a simple string ...
    Battle Bunny Battle Bunny October 2012 Development
  • More memoryHi all... can anyone help, Is it possible to get more memory for basic pref' in Basin.... 40 odd k is just not enough !

    ... indirectly if a simple string space has been reclaimed ... If a DIM command refers to an existing array (eg. to ... code]
    3000 RESTORE 3000: DIM v$(7,20):
    FOR ... name)","number array",
    "number (long name)","string array","FOR...NEXT ...
    Battle Bunny Battle Bunny November 2012 Sinclair Basic
  • More memoryHi all... can anyone help, Is it possible to get more memory for basic pref' in Basin.... 40 odd k is just not enough !

    ... a multi-dimensional string array into an indexed 1D string array with trailing spaces ... with code to DIM & load DATA into array
    9902 RESTORE ... DATA array while adjusting header
    9904 [color=blue]CLEAR: DIM b ...
    Battle Bunny Battle Bunny November 2012 Sinclair Basic
  • CAT!RAM and PUTRAMLast year sometime I posted a couple of routines to: * catalogue the 128k RAMdisk in BASIC; * move RAMTOP and the stacks from BASIC. CAT!RAM and PUTR…

    ... m
    9910 DIM f$(e,10): DIM f(e,8): LET ... type: 0=program, 1=numeric array, 2=string array, 3=bytes
    REM ... 6,7 program length, or array name; 8,9 auto-run ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • A "generic" loader for +3(e)I've made this loader for 128k games in +3DOS. [CODE]dos_open equ 262 dos_close equ 265 dos_abandon equ 268 dos_read equ 274 dos_write equ 277 dos_s…

    ... ";rl: RANDOMIZE rl: CLEAR:
    DIM r$(FN p(23670)): LET ... trailing ENTER. A 1-dimension string array has a 6-byte header ... text and a 1-dimension string array with 'n' bytes of text ... by creating a 1-dimension string array of the required size, shifting ...
    Battle Bunny Battle Bunny December 2013 Development
  • that "listing variables during runtime" thingWell, I did eventually finish this, but with my meds playing up I don't have much time each day that I can spend at the computer, so it's taken rathe…

    ... (23639)+6):
    RESTORE 9900: DIM v$(7,20):
    FOR ... (short name)","number array","number (long name)",
    "string array","FOR...NEXT control ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • Utility to create long REM Line for storing M/C program - Maximum BASIC Line LengthHi, I think there was a Utlity or Toolkit to create a long REM-Line under 48k BASIC to store some MCode in it. So I don´t have to type e.g. 5…

    ... ";rl: RANDOMIZE rl: CLEAR:
    DIM r$(FN p(23670)): LET ... trailing ENTER. A 1-dimension string array has a 6-byte header ... text and a 1-dimension string array with 'n' bytes of text ... by creating a 1-dimension string array of the required size, shifting ...
    Battle Bunny Battle Bunny October 2015 Sinclair Basic
  • So I did a thing...And it's nearly ready for release: [img]http://s18.postimg.org/4453ayo5j/Screen_Shot_2016_03_30_at_16_18_17.png[/img] Apologies for the enormou…

    ... square editor fonts
    DIM SPLIT can now split ... function caused problems
    String multiplication with negative values ... characters to the source string
    DIM works with a ... /> Crash when accessing a string array's cached index
    ...
    Dunny Dunny April 2016 Sinclair Basic
  • Arrays in BASICHi so I'm making this crappy game and I wanna store the screen positions of some UDGs in in a 50x2 array cause I have 50 characters. So I made the ar…

    A string array a$() can be minimised to seven bytes with DIM a$(1 ... ) (six bytes for a 1D array header ... plus one data byte). Similarly with numbers, although DIM ... /> To get rid of an array altogether, you first of all ...
    Battle Bunny Battle Bunny October 2016 Sinclair Basic
  • Okay so can you save text as a data array ?So I was playing with this but I'm obviously not doing this correctly. [code] 10 INPUT "Enter some text: ";a$ 20 PRINT a$ RUN [/code] Now i'm…

    a$ is not an array, it's a string. You need to dimension ... an array if you want ... to save it with DIM A ... $(10) for example. Dimensioning a string array like that ...
    AndyC AndyC April 2018 Sinclair Basic
  • How much can you get into 48k?Todays experiment was to see how long, how much text, a PRINT statement will hold. I filled it up with * and counted them and got 689 chrs. Almost 22…

    ... string variables and a string array with the same name.

    Using DIM ... with string arrays ... .
    First off, string array names can only ...
    1024MAK 1024MAK August 2019 BASIC
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
string 2.8K 5.1K
array 1.7K 3.2K
dim 1.1K 1.8K

Related Threads

  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum.<br /> There was a command in speccy basic that would let you scroll a string …
  • String slicing for UDG definitionHey everyone.<br /> <br /> Got a bit of a string slicing/string to variable conversion problem.<br /> <br /> 10 let a$="01100110"<br /> 20 let pokeva…
  • Method to read byte as binary string rather than dec?Hi all<br /> <br /> Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it ba…
  • Character Array tape header block parameters?Hello all! Long time since I've been here! Hope everyone's bright and cheerful as usual! <br /> <br /> I've been trying to figure out the structure o…
  • Insane string of bad luckWhat a horrendous past 3 months. :cry:<br /> All my computers died (including WoS), 2 of my guinea pigs died, my holidays got canceled and tonight my…
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker:<br /> <br /> [quote]<br /> 20 RAN…
  • Quickest way to mix up an array of intsOk, I have ...<br /> <br /> [CODE]<br /> 10 DIM v(20) : FOR f = 1 TO 20 : LET v(f) = f : NEXT F<br /> [/CODE]<br /> <br /> now.... obviously each arr…
  • 2 questions about matrix and string handlingI was never good at understanding how to do something random in Sinclair Basic without repeating something that was already done. Had problems unders…
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as <br /> 10 DIM AB(10) instead of<br /> 10 DIM A(10)…
  • Multi Dimension String Arrays.Ok so I've been playing with Sinclair Basic though BASIN and I'm wanting to use multi dimension string arrays, if it is possible.<br /> <br /> I know…

Related Searches

  • dim input
  • dim from input
  • dim variable size
  • dim size
  • input array
  • input an array
  • ld bc eostr string
  • reorder a string
  • change characters in string
  • rotate dimensonal array
  • dim shoot em up
  • dim routine
  • inputting to a string array
  • inputting to array basic
  • basic text array
  • writing text to an array
  • save array
  • detect a word string on the screen
  • dim
  • dim string

Copyright © 2024 World of Spectrum