IonicWind Software

IWBasic => General Questions => Topic started by: okchoir on May 17, 2009, 02:41:38 PM

Title: Unicode "APPEND" Function
Post by: okchoir on May 17, 2009, 02:41:38 PM
I am writing Ebasic code to handle unicode strings, and have need to append strings.  I'm seeing that function for ASCII, but not for unicode.  Paul has already included a great complement of Unicode functions in Ebasic, so I am puzzled that this one is not included.  Am I missing something?
Title: Re: Unicode "APPEND" Function
Post by: Ionic Wind Support Team on May 17, 2009, 03:02:40 PM
Why not just use the + operator?
wa$ = wb$ + wc$

Or _wstrappend, which is what the + operator calls.   

wa$ = _wstrappend(wb$, wc$)

Or even WUSING will work.

wa$ = WUSING("&&",wb$,wc$)

Paul.
Title: Re: Unicode "APPEND" Function
Post by: okchoir on May 17, 2009, 04:56:20 PM
Thanks, Paul.  The "+" operator works!  I needed a nudge to think "outside the box".
Title: Re: Unicode "APPEND" Function
Post by: Ionic Wind Support Team on May 18, 2009, 02:42:12 AM
"+" for string concatenation (appending) is standard in all BASIC-like languages.