Using strings
dk_akj
Posts: 37
Hi.
Just received my first stamp today, a BS2SX mounted on an education board.
I've spend the last hour trying to find out how it handles strings. But in my manual the word string is not to be found.
How do·I declare a variable og type string ?
How do I·assing a·value to the variable ?
How do I compare 2 strings ?
Thanks in advance
Anders
Just received my first stamp today, a BS2SX mounted on an education board.
I've spend the last hour trying to find out how it handles strings. But in my manual the word string is not to be found.
How do·I declare a variable og type string ?
How do I·assing a·value to the variable ?
How do I compare 2 strings ?
Thanks in advance
Anders
Comments
When strings are needed for displays, etc., they're typically stored in DATA statements. Like this:
By making them zero-terminated, a simple subroutine can be used to "print" them:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office