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
General →
Your Projects →
Mandelbrot fractal displayerStarted by TheVanWithAMan , 19 Nov 2023 Classpad, Fractals |
|
|
||
Calculators →
Classpad →
Screen Reciever Classpad, Windows 11Started by TDurda , 07 Sep 2022 Screen Reciever, Classpad and 1 more... |
|
|
||
General →
General Discussion →
CPLua - What is wrong with this while loop?Started by MrMagoo , 15 Apr 2021 CPLua, Classpad, While |
|
|
||
Calculators →
Classpad →
Can't seem to transfer add-ins properlyStarted by sdasda7777 , 09 May 2020 add-in, classpad, CP330 |
|
|
||
Calculators →
Classpad →
OS 2.2 -> 3.0 with ClassPad 300+Started by sijisu , 06 Oct 2019 classpad, update, os, 300plus and 1 more... |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users