09-28-2016 12:15 PM
How I can split string such as "HELLO" => "H" "E" "L" "L" "O" by using the length
Solved! Go to Solution.
09-28-2016 12:20 PM - edited 09-28-2016 12:21 PM
Is the right side an array of strings?
String subset in a for loop with i wired to the position and 1 wired to lenght would do. Autoindex at the output tunnel.
Set N to the string length.
09-28-2016 12:36 PM
@OATTelecom wrote:How I can split string such as "HELLO" => "H" "E" "L" "L" "O" by using the length
Yeah Type cast!
09-28-2016 12:38 PM
@JÞB wrote:Yeah Type cast!
![]()
That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄
09-28-2016 12:45 PM - edited 09-28-2016 12:47 PM
@altenbach wrote:
@JÞB wrote:Yeah Type cast!
![]()
That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄
<tounge-in-cheek mode = True>
I believe that having a Graphical representation of code offers many benefits over text descriptions of code. Wouldn't you agree? 😄
Don't they allow laptops on busses?
09-28-2016 12:51 PM
@JÞB wrote:
@altenbach wrote:
@JÞB wrote:Yeah Type cast!
![]()
That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄
<tounge-in-cheek mode = True>
I believe that having a Graphical representation of code offers many benefits over text descriptions of code. Wouldn't you agree? 😄
Don't they allow laptops on busses?
The mouse is harder to control due to the rattling and I would need to turn my phone into a WIFI access point to have internet (via LTE) on the laptop. Too many steps. 😄
09-28-2016 02:03 PM
Sorry, in addition if I want output in form of binary , what should I do ?
ex . H = "01001000"
thank you
09-28-2016 02:15 PM - edited 09-28-2016 02:28 PM
Use "string to byte array" and set the display format of the U8 array to binary, 8 digits, pad with zeroes.
(If you want something else, you need to tell us the desired output datatype. E.g. you could format each number into a string containing the characters 0 and 1. (%08b))
09-28-2016 02:50 PM
how to set the display format of the U8 array to binary, 8 digits, pad with zeroes.
09-28-2016 02:55 PM
Display Format for the properties page of the numeric indicator that makes up the array.