Limiting StrJoin to 2 strings is a massive headache. I wish they had done what Excel did by using the ampersand to join many strings.

#1
Posted 25 October 2017 - 06:38 PM
#2
Posted 25 October 2017 - 06:42 PM
Tried "%string% + %string%" yet?
Just put a + in between the strings
#3
Posted 25 October 2017 - 07:37 PM
Yeah? I'll give it a whirl. Thanks for that!!
#4
Posted 25 October 2017 - 08:05 PM
Nope, not working. Here is what I am trying to do:
"QAZ ">A
"WSX ">B
"EDC ">C
A + B + C>D
PRINT D
The desired result would be:
QAZ WSX EDC
I am trying to join the value of the variables.
#5
Posted 25 October 2017 - 08:32 PM
Then I have no clue
#6
Posted 28 October 2017 - 11:20 AM
You need to repeat the steps twice, or generally if you have n strings, you need n-1 steps.
For Classpad II (bold italic means Var from the keyboard menu). Print commands for a-c are for visual checking of inputted strings. Pause is not necessary - just for my purpose to stop the program for debugging.
ClrText
InputStr a
InputStr b
InputStr c
Print a
Print b
Print c
Pause
StrJoin a,b,joined
StrJoin joined,c,joined
Print joined
------------------------------
after running the program
QAZ
WSX
EDC
QAZWSXEDC
Edited by pan.gejt, 28 October 2017 - 11:21 AM.
#7
Posted 31 October 2017 - 08:01 PM
Yes. That is what I did. That is also what I did not want to do because it is very labor intensive to join 10+ strings together. Thanks anyway.
Also tagged with one or more of these keywords: classpad StrJoin, StrJoin, classpad
Calculators →
Classpad →
Can't seem to transfer add-ins properlyStarted by sdasda7777 , 09 May 2020 ![]() |
|
![]()
|
||
Calculators →
Classpad →
OS 2.2 -> 3.0 with ClassPad 300+Started by sijisu , 06 Oct 2019 ![]() |
|
![]()
|
||
Calculators →
Classpad →
Calculator Keys Are Messed UpStarted by FrustratedOne , 24 May 2019 ![]() |
|
![]()
|
||
General →
General Discussion →
A ClassPad profile imageStarted by sma4t , 16 Mar 2018 ![]() |
|
![]()
|
||
Programming →
General Help →
Classpad 330 SDK?Started by Yuki Rin , 20 Feb 2018 ![]() |
|
![]()
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users