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
<1…9101112131415…34>
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... you maybe use a dimensioned array for BlaWhi1 variables and such ... be defined with something like Dim Color[8] and then have ...
    kgmcneil kgmcneil November 2010 Sinclair Basic
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... without the need for the array?

    [[B]Edit: [/B ... much quicker than printing the string - thank you.]

    Paddy
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... without the need for the array?[/QUOTE]

    It's ... much quicker than printing the string - thank you.][/QUOTE]

    Einar Saukas Einar Saukas November 2010 Sinclair Basic
  • ZX BASIC and garbage collection...Hi Folks, I was thinking about using the following approach in a program I am writing: [CODE]DIM d$(100,50) LOAD "NAMES" DATA d$() ... DIM d$(50,25…

    ... THEN STOP
    190 REM DIM d(c)
    200 LET ...
    250 REM --------------------------
    260 DIM d(10):
    FOR a ... br /> 290 REM --------------------------
    300 DIM d(15):
    FOR a ... is no need to re-DIM the array before LOADing the DATA ...
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • ZX BASIC and garbage collection...Hi Folks, I was thinking about using the following approach in a program I am writing: [CODE]DIM d$(100,50) LOAD "NAMES" DATA d$() ... DIM d$(50,25…

    I would have expected the array to require re-dimensioning when ... size 15.
    As in DIM a$(10): PRINT a$(11 ... you can minimize a large array with DIM a$(1) even if ...
    Geoff Geoff November 2010 Sinclair Basic
  • ZX BASIC and garbage collection...Hi Folks, I was thinking about using the following approach in a program I am writing: [CODE]DIM d$(100,50) LOAD "NAMES" DATA d$() ... DIM d$(50,25…

    ... ]I would have expected the array to require re-dimensioning when ... size 15.
    As in DIM a$(10): PRINT a$(11 ... you can minimize a large array with DIM a$(1) even if ... covers it deletes the old array and auto-dimensions and populates ...
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • ZX BASIC and garbage collection...Hi Folks, I was thinking about using the following approach in a program I am writing: [CODE]DIM d$(100,50) LOAD "NAMES" DATA d$() ... DIM d$(50,25…

    ... BASIC searches for the named array. When found, the message ... Number array: or Character array: followed by the ... and the array is loaded. [B]Any array currently in ... with character arrays, any string variable currently in memory having ...
    jp jp November 2010 Sinclair Basic
  • Loading arrays in BASin...Hi Folks, I have been playing with loading and saving arrays from BASIC in BASin. By trapping the SAVE command the DATA can be saved to a .TAP file…

    ... been defined via a [B]DIM[/B] statement. This all worked ... simply have to define the array prior to loading e.g ... .

    [CODE]100 DIM d$(1): LOAD "DATA" DATA ...
    Paddy Coleman Paddy Coleman December 2010 Sinclair Basic
  • SpecBAS: Request for comment - SpritesHi all - Having been slaving away at the new SpecBAS release, I've decided to finally bite the bullet and implement a sprite engine. I've got a nice…

    ... just store them as an array of strings of bytes?
    string of bytes (width*height in ...
    Dunny Dunny January 2011 Sinclair Miscellaneous
  • SpecBAS: Request for comment - SpritesHi all - Having been slaving away at the new SpecBAS release, I've decided to finally bite the bullet and implement a sprite engine. I've got a nice…

    ... /> I'd probably want an array of sprites drawn in their ... being allowed to pass a string variable for the gfx$ parameter ...
    Dunny Dunny January 2011 Sinclair Miscellaneous
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... then read it to an array to use it, you are ... DATA statement, and where your array sits on RAM.

    20 DIM r(5): RESTORE: FOR i ...
    na_th_an na_th_an February 2011 Sinclair Basic
  • Drawing 3D grids in Basic...This is probably very simple for someone who feels comfortable with Math, but it's driving me crazy... Let's say I want to draw a grid of 16 by 16 s…

    ... put all 17 in an array for simplicity.) Then the difference ... .

    [code]
    1 DIM c(17,2): LET line ...
    Battle Bunny Battle Bunny March 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... ]length[/b] to a DIMensioned array that is set up to ... : LET length=6912
    10 DIM s$(length): DEF FN p ...
    chev chev April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    The destination string doesn't need to be ... 's probably more efficient to DIM it at the start.
    string to RAM or RAM to ... string or RAM to RAM. (It ... also works with string to string - but that's a ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... where the destination & source string names are in the next ... devise some other method.) Any string names (apart from m$, which ... for up to two (optional) string variable definitions (destination & source ... TO 40

    31 DIM m$(18): LET vars=FN ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... a DATA array.
    [code] 10 RESTORE 200
    20 DIM n ...
    chev chev April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    Regarding string slicing, it will work with ... )
    Do [b]not[/b] DIM s$() at the start, to ... it encounters a "(" after a string name.
    * For the LH ... FN m$() could handle both string slicing and free RAM slicing ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    [QUOTE=Battle Bunny;525787]Regarding string slicing, it will work with ... )
    Do [b]not[/b] DIM s$() at the start, to ... it encounters a "(" after a string name.
    * For the LH ... FN m$() could handle both string slicing and free RAM slicing ...
    Paddy Coleman Paddy Coleman April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... of FN m$() which handles string slicing in both destination & ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... numeric variable and a numeric array with the same name? It ... have:

    [CODE]10 DIM a(5)
    20 LET ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... numeric variable and a numeric array with the same name? It ... have:

    [CODE]10 DIM a(5)
    20 LET ...
    Mad Fritz Mad Fritz May 2011 Sinclair Basic
  • MicroSpeech Entry PointsHello Hardware Guys, Do any of you have any information regarding the MicroSpeech ROM. In particular: 1) Do you know what addressess cause it to p…

    The logic gate array that does the decoding reads ... has to 'catch' the speech string somewhere. So I would be ...
    roko roko June 2011 Hardware
  • MicroSpeech Entry PointsHello Hardware Guys, Do any of you have any information regarding the MicroSpeech ROM. In particular: 1) Do you know what addressess cause it to p…

    ... =roko;541286]The logic gate array that does the decoding reads ... has to 'catch' the speech string somewhere. So I would be ...
    BloodBaz BloodBaz June 2011 Hardware
  • Development choices, help!As a small part-time project I would like to convert my daily programming work (a workflow/bpel engine) to the Spectrum, purely for fun. I would like…

    ... key is pressed and the string is not empty.
    {
    Timmy Timmy June 2011 Development
  • Drawing a "window"...Hi Folks, I want to display a blank window over an existing screen. It then draws a border around it but that is not the point of my question. Ini…

    ... a character array with the strings. But accessing a single string variable ... might be faster than accesing an element of an array ...
    mcleod_ideafix mcleod_ideafix June 2011 Sinclair Basic
  • Drawing a "window"...Hi Folks, I want to display a blank window over an existing screen. It then draws a border around it but that is not the point of my question. Ini…

    ... a character array with the strings. But accessing a single string variable ... might be faster than accesing an element of an array ...
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... goes for the CODE with string. string arrays are shorter in memory ... then number arrays, but using string arrays with number interpretation would ... yields:

    [CODE]100 DIM a$(1,1)
    110 ... where possible compare to a string literal but failing that ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... :

    [CODE]100 DIM a$(1,1)
    110 ... float to a one-letter string and stacks it. The ... takes time. Then a string-compare is done, with ... longer than a simple string compare of 1 byte ... only a fast single-letter string compare.

    In ...
    Dunny Dunny July 2011 Sinclair Basic
  • binutils questionSince there's a few people using binutils these days I thought I'd give it a go and see whether it solves my hunt for a replacement assembler/librari…

    ... 6;" places an integer array at address 40000. This ... /> Also be aware that string constants are supposed to be ... tried to modify a string constant and then found ... looks like a multidimensional array access but it isn ... because we have an array of arrays which does ...
    Alcoholics Anonymous Alcoholics Anonymous July 2011 Development
<1…9101112131415…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