Shop OBEX P1 Docs P2 Docs Learn Events
More string mania (or brain-lock) — Parallax Forums

More string mania (or brain-lock)

softexsoftex Posts: 27
edited 2009-02-04 21:55 in Propeller 1
How would one convert an integer result [noparse][[/noparse]from strsize(@data), for example] into a string so one could output it in methods requiring a string parameter [noparse][[/noparse]eg. with gr.text]? Is there a STR$ function lurking out there somewhere in propeller-land?

-Dave

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-04 21:55
    There's an object in the Object Exchange that does number to string conversions. It's called "Numbers". There's another object called "Format" that works differently, but also converts numbers to strings. Have a look at them. There is no built-in STR$ or other string function other than STRSIZE and STRCOMP. BYTEMOVE can also be used to copy strings around, but that's it.
Sign In or Register to comment.