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.003s
<1234567…34>
  • Renumbering routinesI sometimes modify programs that either I or others have written and sensibly renumber them - usually 10/10, to make future alterations easier and ma…

    ... Homer. They don't handle VAL "" though. Even the renumber routine ... Your Spectrum doesn't handle VAL "" numbers, probably because it's ... , not a literal, and a VAL string might hold more than just ...
    Battle Bunny Battle Bunny September 2009 Sinclair Basic
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    Arjun, the upper$ and lower$ functions only return the first letter of the string capitalized. Something like this will do the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND CODE s$>96 AND CODE s$
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the first letter of the string capitalized. Something like this will ... />
    DEF FN u$(s$)=VAL$ "CHR$ ((CODE s$)-(32 AND ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the bit happening inside the VAL$, I'm a bit stumped ... I'm doing that by string slicing the "+FN..." bit off ...
    Alcoholics Anonymous Alcoholics Anonymous January 2010 Sinclair Miscellaneous
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    [QUOTE=Alcoholics Anonymous;413667]The recursion has to be terminated somehow and I'm doing that by string slicing the "+FN..." bit off if the string length is
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • Message to all programmersHello folks, more and more programmers in the recent time are using special loading routines for their Homebrew-Software. This makes their game runn…

    ... PI:PAPER NOT PI:CLEAR VAL "24569": POKE 23739,CODE "o ... FOR i=SGN PI TO VAL "8":OUT 32765, i:LOAD ... I
    3 RANDOMIZE USR VAL"24570"
    [/CODE]

    VAL string as well. On some disk ...
    Speccyman Speccyman August 2010 Development
  • A new ZX spectrum cloneOver the past 12 months i have been developing a new spectrum clone as a hobby project to waste my spare time on. It is still not fully complete yet …

    ... USR with numeric argument, FN, VAL, string functions, or PEEK would be ...
    mcleod_ideafix mcleod_ideafix August 2012 Hardware
  • 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…

    ... a bit of a string slicing/string to variable conversion problem.
    VAL or VAL$ somewhere, but being a ...
    BigBadMick BigBadMick April 2005 Development
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    ... be themselves variable by using VAL$. Thus, if v$ holds the ... $=VAL$ v$[/b]
    for a string, or:
    [b]LET anumber=VAL VAL ...
    Battle Bunny Battle Bunny October 2010 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…

    ... in BASIC that takes a string a$ from INPUT and then ... . Is there some trick with VAL or CHR$ so the Speccy ... character it reads in the string a$ is a number or ...
    ivanb303 ivanb303 May 2017 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    I see some basic programs which use Let a=val "1" instead of let a=1 syntax.

    what is the difference between val "1" and 1?

    is it an effect of some compiler or converter?

    just curious.
    Arda Arda April 2003 Sinclair Basic
  • Sinclair Basic compiler for PC?I know we all can use BASin to play for a while in a little window. But... What about creating a 80x86 EXE program from scratch using Sinclair Basic…

    ... />
    You could input a string like (1+2) and the ... .NET!!! Everybody else thinks that VAL("1+2") is either an ...
    Marcelo Marcelo September 2003 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…

    ... would let you scroll a string variable left or right one ...
    Neil^P Neil^P December 2003 Games
  • Most pointless type-in?I think it was one I saw, probably in Program Pitstop(which mag did that?), to evaluate a string as a full expression, a la the Beeb: spend hours typ…

    ... did that?), to evaluate a string as a full expression, a ... two seconds typing LET A=VAL A$, which does exactly the ...
    robert@fm robert@fm October 2004 Games
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... ]hex4$[/i] = 4 digit hex string ("0000"-"FFFF")
    [i]posint8 ... [/i] = non-null 1 character string
    [i]string2[/i] = 2 ... character string
    [/code]

    [b ... ]([i]string[/i])
    [code]
    DEF FN B(b$)=VAL(CHR ...
    chev chev November 2004 Sinclair Basic
  • 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…

    ... out.
    Surely such a string of bad luck was thought ...
    mheide mheide February 2008 Chit chat
  • ANNOUNCE: BASin r14 is up. New SCREEN$ paintbox included.Hi all, Well, I can't sit on this any longer - so I've released it. Let's all get a good testing session going, eh? You can get the new BASin [url=…

    ... tokenising/detokenising a whole string on the popupmenu. Basically ... more pathological uses of the VAL$ function.
    Added - ... - BASin wasn't handling string operations well for strings with ... Jahn)
    Fixed - Saving string arrays could be problematic - it ...
    Dunny Dunny February 2008 Emulators
  • 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$=""…

    Recently I decided to use string slicing to extract random numbers ...
    Dunny Dunny November 2008 Development
  • reading Hex[code]1 DIM a$(20,20) 2 DIM g$(16) 3 LET g$="\::\ \' \ '\ .\. \.:\:.\:'\':\''\..\: \ :\'.\.'" 4 BORDER 4 20 LET a$(1)="00000000000000000000" 21 LET …

    ... PRINT AT x,y;g$(VAL (a$(x,y)+1))
    string G$)

    so how ... the tenth char in the string g$

    Regards, Chop ...
    chop983 chop983 December 2008 Sinclair Basic
  • 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…

    ... way to randomly scramble the string?

    Second question. Let ...
    zxbruno zxbruno October 2009 Sinclair Basic
  • 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…

    ... wanting to use multi dimension string arrays, if it is possible ...
    Scottie_uk Scottie_uk August 2010 Sinclair Basic
  • 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…

    ... a binary number in a string, and also a method using ... (n/b)*b)
    +VAL (("a*VAL FN b$(INT (n/b ... ,a,b,l)=FN b$(VAL FN b$(n,a,10 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Indirect Variable AssignmentHere's another wacky routine. This allows assignment of values to variables where the source & destination variables can themselves be defined in var…

    ... already be done with VAL or VAL$, but this works ... /> 10 PRINT USR id,"val"+CHR$ (a+64),"=",v ... PRINT USR id,v$,"=",v+VAL ("val"+CHR$ (a+64));
    string) variable name.
    ;The ... b$(c,d) the string contained in the variable named ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • VAL SCREEN$I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL S…

    I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL SCREEN$ (1,1).

    I cant get it to work now...

    Any ideas?!:-?
    daveysludge daveysludge January 2012 Sinclair Basic
  • stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…

    ... ' and return them as a string, but however much I fiddle ... with quoting and parenthesising and VAL$ering I always get either ... $(s,l)=CHR$ PEEK (s)+VAL$ "FN j$(s+1,l ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • 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…

    ... 'm looking to poke a string of characters including colour control ... do it by poking a string such as A$?
    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…

    ... reads a number from a string and converts it to a ...
    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…

    ... doing the same for a string variable but haven't done ... to SCANNING to get the string details onto the calculator stack ... $): whereby mc can obtain the string details from within the DEF ... for the name of the string to be pointed to by ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • 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 …

    Hi 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 making good progress.

    Reading the book ZX Spectrum Games Master. Its a great start ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • Questions about BasicHi everyone, I am Max, student of media studies in berlin, and I have to do a little project on the spectrum. I am working on a sinclair zx spectrum…

    ... value of a integer or string, I don't know what ... did it;)
    a=val("hallo")
    a=val("15")


    val$="hallo"

    3. the ...
    lomax030 lomax030 December 2012 Sinclair Basic
<1234567…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade 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

HitBox

Word Docs Hits
val 705 2.3K
string 2.8K 5.1K

Related Threads

  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax.<br /> <br /> what is the difference between val "1" and 1?<br /> <br /> …
  • 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…
  • 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…
  • 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…
  • 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…
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…
  • VAL SCREEN$I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL S…

Related Searches

  • val
  • ld bc eostr string
  • reorder a string
  • change characters in string
  • inputting to a string array
  • detect a word string on the screen
  • hex to dez string
  • colors in a string
  • attributes in a string
  • string
  • reverse a string
  • randomize usr val
  • random string
  • randomize val
  • filter string
  • string memory
  • string from memory
  • val string save space
  • val string save memory
  • val string memory

Copyright © 2024 World of Spectrum