*Sorry for the bad English.

Hi,
I want to join two strings in Axe and store it into a variable. In TI-BASIC, We can do something like that:

Code:
Str0+Str1→Str2


So, if Str0 is storing "ABC" and Str1 is storing "DEF", Str3 will store "ABCDEF"

How I can do that in Axe?

Thanks in advance.
From this post:

concatenate strings

inputs: r1 is the pointer to first string, r2 points to the second one, r3 is where to write the string

outputs: a string is stored in memory starting at r3


Code:
Lbl CS
r3->A
For(B,0,length(r1))
{r1+B}->{A}
A+1->A:End
For(B,0,length(r2))
{r2+B}->{A}
A+1->A:End
Return

Hope this helps Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement