Shop OBEX P1 Docs P2 Docs Learn Events
Concat String — Parallax Forums

Concat String

Zack BloomZack Bloom Posts: 7
edited 2006-10-26 00:34 in Propeller 1
How do you concat strings in spin?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-10-26 00:34
    Just like in PBasic for the Stamp, you have to do the work yourself one character at a time. Think of strings as byte arrays with just the slightest bit of syntactic sugar (in the form of string/strlength/strcomp). A number of people have been thinking about a string manipulation library, but it's not been done yet. There was a string library "object" posted here some time ago, but it also does some dynamic memory allocation which makes it a little more complicated in some ways than a simple C-like string library.
Sign In or Register to comment.