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.113s
<1234567…34>
  • 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: [quote] 20 RANDOMIZE : LET a$=""…

    ... to use string slicing to extract random numbers from a sequence in ... f=1 TO 49: LET a$=a$+CHR$ (f): NEXT f: FOR ... b=1+INT (RND*LEN a$): PRINT AT g-1,8 ... +((f-1)*3);" "( TO (CODE a$(b)
    Dunny Dunny November 2008 Development
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    I'm looking to poke a string of characters including colour control ... />
    That equates to graphic 'A' in bright red ink at ... I do it by poking a string such as ...
    daveysludge daveysludge March 2012 Sinclair Basic
  • Overflow Detection while Scanning a Number from a StringI've got some strange behaviour from a subroutine that reads a number from a string and converts it to a 32-bit long. It's C's strtol if it helps to…

    ... behaviour from a subroutine that reads a number from a string and converts ... it to a 32- ... what about a representation of a base X number in a binary ... proving this:

    Let a = the running total, b = ...
    Alcoholics Anonymous Alcoholics Anonymous April 2012 Development
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…

    ... mc" is a simple way of passing a single numeric parameter ... doing the same for a string variable but haven't ... then a call to SCANNING to get the string details ... mc can obtain the string details from within the DEF ... up a location for the name of the string to ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on

    im looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
    digital digital September 2015 Development
  • flash in a stringhi, is it possible to store flash in a string? u can store colours, bright, etc.

    hi,

    is it possible to store flash in a string? u can store colours, bright, etc.
    digital digital January 2017 Sinclair Basic
  • How to separate a character from a number in a string?Hi I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say you w…

    ... program in BASIC that takes a string a$ from INPUT and then draws ... from the current PLOT position a line up 20 then left ... character it reads in the string a$ is a number or char. Because ...
    ivanb303 ivanb303 May 2017 Sinclair Basic
  • Take this job and shove itI've given up trying, as a ducker and diver, I do fine. Got a nice little part-time job with the Royal Mail for the last 4 years, do okay buying and …

    ... looked out of place with a razor in hand.
    ... him. First question was a fairly technical but standard one ... I should switch down quite a bit of levels. Do ... you to write a program to reverse a string...at this point ... although I do have a theory on the latter ...
    Arjun Arjun April 2006 Chit chat
  • 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. …

    ... compiler world). This one will reverse a string.

    [CODE]110 DIM ... Parms
    120 INPUT "Enter string: "; LINE p$
    125 PRINT ...
    Paddy Coleman Paddy Coleman September 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. …

    ... compiler world). This one will reverse a string.

    [CODE]110 DIM ... Parms
    120 INPUT "Enter string: "; LINE p$
    125 PRINT ... , this can be done with a recursive function in BASIC.
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum. There was a command in speccy basic that would let you scroll a string variab…

    ... that would let you scroll a string variable left or right one ... it?
    eg
    LET A$="ABCDEFG"
    followed by this ... command would leave A$ then containing "GABCDEF" or " ... command might have been LET A$=A$+some expression, or something like ...
    Neil^P Neil^P December 2003 Games
  • String slicing for UDG definitionHey everyone. Got a bit of a string slicing/string to variable conversion problem. 10 let a$="01100110" 20 let pokevalue=???? What expression do I…

    ... />
    Got a bit of a string slicing/string to variable conversion problem ... .

    10 let a ... of the binary expression in a$?

    I ... VAL$ somewhere, but being a little rusty in the old ...
    BigBadMick BigBadMick April 2005 Development
  • Insane string of bad luckWhat a horrendous past 3 months. :cry: All my computers died (including WoS), 2 of my guinea pigs died, my holidays got canceled and tonight my DVD p…

    What a horrendous past 3 months. :cry:< ... crapped out.
    Surely such a string of bad luck was thought ...
    mheide mheide February 2008 Chit chat
  • OR in a IFHi guys, I have a string that is defined by the user. I want to have an IF that does something like IF string<> a OR b OR c THEN goto 10 Hope that m…

    Hi guys,
    I have a string that is defined by the ... that does something like IF string a OR b OR c THEN ... /> Also, how do you make a program automatically run when it ...
    Robin Robin February 2010 Sinclair Basic
  • A tidy loader for minigamesThe minigame competition doesn't permit the use of separate loaders like [code]10 LOAD "": RAND USR 32768[/code] The loader must be included in the b…

    ... br /> It uses two variables: a string variable contains all the machine ... USR
    6 97 a
    7 13 Carriage ... br /> 1018 65 Variable name (a)
    1019 0 Mantissa

    There's a way to squeeze out another ...
    ajmoss ajmoss June 2010 Development
  • Formula for creating a fixture listI'm writing a football management game with 20 teams in each division stored in a string array T$(1) to T$(20). However i can't figure out how to cr…

    I'm writing a football management game with 20 ... in each division stored in a string array T$(1) to T ... figure out how to create a fixture list where each team ...
    Rebelstar without a cause Rebelstar without a cause September 2010 Sinclair Basic
  • I didn't even get a job interview.I have been at the Citizens Advice Bureau for 2 years now. I'm one of the most experienced assessors (that's a fairly new role) there, and out of tho…

    ... and painstakingly learning to be a Money Advice Assistant. I ... would realise I already have a voluntary job.

    ... be 40 soon, I have a string of unskilled jobs behind me ... some qualifications at evening classes, A - level English, GCSE Astronomy, ...
    thx1138 thx1138 May 2011 Chit chat
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... loop to build a binary number in a string, and also a method using ... converter (not that there's a shortage of them) :); the ... example, to convert 12345 to a 16-digit binary equivalent (which ... br /> [/code]
    and the reverse:
    [code]
    PRINT FN ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • OpenSE BASIC 3.1.1The eagle-eyed will have noticed that [url="http://www.worldofspectrum.org/infoseekid.cgi?id=0027510"]SE BASIC[/url] got an update last week. As a te…

    ... solution was to machine reverse engineer it resulting in ... that while you can reverse engineer the code, you ... from the original ROM, a surprisingly large amount of ... converting 16-bit decimal to a string in hex format).
    a lot on a 48K machine, but ...
    chev chev May 2012 Sinclair Basic
  • Is it me, or is Sky Drive a fiddly bit of annoying rubbish?I shot a string of short movie clips today on my nokia lumia phone, all between 3 and 30 seconds long. Want to drag and drop the clips into my usual…

    I shot a string of short movie clips today ... uploads will make it, choses a slightly different thumbnail image to ... them first

    what a ball ache

    why ...
    thx1138 thx1138 July 2012 Chit chat
  • 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…

    ... of the form:
    "FN a$(a$,a[,b...,z])=STR$ USR md ... table and return a string result. By putting a string definition as the " ... be persuaded to return any string expression. This works but the ... which can be used wherever a string expression can be used.
    Battle Bunny Battle Bunny September 2012 Development
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... in the program as a hex dump DATA string, so that the ... the form "GO SUB FN a(a$,a,...)" where the FN just ... altogether. (Some programmers have a conniption at this point.) This ... storing mazes (Feb)
    * Poking a string to memory... (Mar)
    * Keyboard ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Features of a modern emulatorModern PCs (and phones :)) have waaaay more processing power and capabilties than the humble Spectrum. I was wondering what sort of features are now …

    ... about, I thought, having a slider on the emulator interface ... the old SlowMo, only in reverse - a FastMo? :) Just to use ... ability to "freeze" a Spectrum then open a window which gives ... Wulf without the overlapping colours a modern possibility?

    ...
    thricenightly thricenightly December 2012 Emulators
  • Saving a file and removing the title (Program:)I remember when saving a program how I could construct a string such as: 10 let a$=chr$ 8+ chr$ 8+"name" 20 save a$ In order to remove the "Program…

    ... when saving a program how I could construct a string such as:

    10 let a$=chr$ 8 ... $ 8+"name"
    20 save a$

    In order to ... the "Program:" title to display a different loading header.

    daveysludge daveysludge April 2013 Sinclair Basic
  • Help finding name/news of a string-like skin disease.A few years back I remember a few news reports on people developing these fine thread-like strings coming out of their skin. Haven't heard anything …

    ... back I remember a few news reports on people ... it proven that it was a hoax?
    ZnorXman ZnorXman August 2013 Chit chat
  • What's the deal with hash tables, anyway?As there's nothing in the [url=http://www.users.globalnet.co.uk/~jg27paw4/pourri/0-surc-contents.htm]Compendium[/url] about hash tables, and as I've …

    ... Melon University, which gives a simple introduction to the ... MOD hashtablesize", where hashcode for a string of length 'n' characters ... use a second function which calculates a pointer to a table ... uses the original function in reverse (less the middle letter) ...
    Battle Bunny Battle Bunny January 2014 Sinclair Basic
  • Double Buffer UtilityHi Folks, I've been experimenting with double buffering on a 48k Speccy for a small project I'm working on. After reading lots of good advice here…

    ... you are asked to enter a number of parameters. Pressing enter ... will result in
    # a default value being used. The ... ,'0')
    binaryY = binaryY[::-1] #reverse the string
    screenAddrBin = '010' + binaryY ...
    KrazyKattapilla KrazyKattapilla August 2014 Development
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ... br />
    Anyone got a less labour intensive BASIC routine ... /> take 170 and convert to a string "10101010"
    take 4 ... and convert to a string "00000100"

    I ... [code]
    # SUB - Binary string conversion, A=decimal input, s$ is the ...
    IanJ IanJ August 2014 Sinclair Basic
  • Recreated ZX Spectrum - something positive for a changeI've spend the last couple of hours mashing rubber keys and playing various Spectrum classics on a 42" TV, wirelessly. Despite the bad press that …

    ... playing various Spectrum classics on a 42" TV, wirelessly.
    < ... You'll be taken through a somewhat arcane procedure, but follow ... space key, and then enter a string of numbers. Do so, and ... has given good results, if a little sluggishly. Set your emulator ...
    Bad Horsey Bad Horsey July 2016 Hardware
  • 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 ... n,m) invert (or reverse the order of) m ... function caused problems
    String multiplication with negative values ... br /> Crash when accessing a string array's cached index
    Dunny Dunny April 2017 Sinclair Basic
<1234567…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 12:41AM
  • i am currently listening to........
    dmsmith on April 15
  • I am currently watching.....
    zx1 on April 15
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 15
  • Cooperative Games.
    harriusherbartio on April 15
  • Celebrity deaths...
    mel the bell on April 15
  • Minor British Sports that did become games on the ZX Spectrum
    dm_boozefreek on April 15
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 15
  • Inside No.9 favourite episodes
    Maroc's Other Projection on April 15
  • How we became brainwashed by social media
    Scottie_uk on April 15

HitBox

Word Docs Hits
reverse 1.9K 2.2K
a 589.5K 1.7M
string 2.8K 5.1K

Related Threads

  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on
  • How to separate a character from a number in a string?Hi <br /> I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say…
  • A Spectrum, a couple of felt tip pens and a lot of free time on Sunday afternoons...In my opinion the best part of having a Spectrum was drawing a game map of the latest Ultimate game in the back page of my geography text book thereb…
  • I NEED A HAND FINDING A 3D CHESS GAME......WITH A HAND IN ITOk.Firstly - It's not one of the chess games in the archive with the word chess in the title.<br /> ##(Although - The ChessMaster2000 LOOKS very fami…
  • HELP!!! i need help turning a .wav files into a .tzx. im a new beginnerhi there. i hope anyone doesnt think im thick or owt but im having trouble in find the right program or the know how to convert all my 8bit mono .wav…
  • Free to a good home - Anyone in South Wales want a pile of Spectrum Games and a +3?Bit of an emergency - I'm moving out in a hurry and I don't have time to sell these!<br /> <br /> Is there anyone in South Wales who wants a fairly b…
  • A clever method of using a single 8-bit register to be used for two things at a timeI don't know if this is the way the SAVE routine in the Spectrum works. Anyway, this is what I've learned today.<br /> <br /> I've been commented the…
  • Overflow Detection while Scanning a Number from a StringI've got some strange behaviour from a subroutine that reads a number from a string and converts it to a 32-bit long. It's C's strtol if it helps to…
  • Sinclair QL: I'm searching for a Gold Card (or better a Super Gold Card) and a Super HermesIf someone here want to sell his Super Gold Card and Super Hemes I'm a big collector of QL stuff and I will pay very very well.<br /> <br /> Very tha…
  • Trying to find a magazine entry for a program I wrote as a child!Hi, <br /> <br /> Back when I was a child I wrote a program called "milkround" that we published in either your spectrum, your sinclair or sinclai…

Related Searches

  • print a char in asm
  • divmmc 3 a
  • testing a microdrive
  • create a batch file screen
  • change a letter
  • is there a system test for the spectrum
  • is there a system test tape for the spectrum
  • how to do a tzx file
  • how to create a tzx file
  • how to make a tzx file
  • composite screen goes yellow after a while
  • screen goes yellow after a while
  • validate input is a number
  • not a number
  • if input is not a number
  • reorder a string
  • inputting to a string array
  • detect a word string on the screen
  • colors in a string
  • attributes in a string

Copyright © 2024 World of Spectrum