May 18, 2024, 07:04:04 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Unicode "APPEND" Function

Started by okchoir, May 17, 2009, 02:41:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

okchoir

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?

Ionic Wind Support Team

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.
Ionic Wind Support Team

okchoir

Thanks, Paul.  The "+" operator works!  I needed a nudge to think "outside the box".

Ionic Wind Support Team

"+" for string concatenation (appending) is standard in all BASIC-like languages. 
Ionic Wind Support Team