07-24-2023 09:13 AM
This is what I'm getting when I'm running the code:
This below is what I would like to get instead.
How to achieve this?
Solved! Go to Solution.
07-24-2023 09:19 AM
Just simply add an EOL constant to it.
07-24-2023 09:32 AM
Great! Thank you, ZYOng!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Acts 20: 35 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
07-26-2023 01:42 PM
I'm working on an XControl that's a string indicator with changeable vertical orientation. I'll post it when it's ready.
07-26-2023 01:59 PM - edited 07-26-2023 01:59 PM
07-26-2023 03:39 PM
Thank you GerdW! This is awesome! It's always a good thing to learn different ways of doing thing.
07-26-2023 04:49 PM
Depending on what you're doing, you might want to throw in a "Trim Whitespace.vi" at the end. Both solutions so far have an extra newline after the last character.
07-26-2023 05:51 PM
@BertMcMahan wrote:
Depending on what you're doing, you might want to throw in a "Trim Whitespace.vi" at the end. Both solutions so far have an extra newline after the last character.
Or just put a Decrement function after the String Length.
07-27-2023 01:01 AM - edited 07-27-2023 01:03 AM
Hi Paul,
@paul_a_cardinale wrote:Or just put a Decrement function after the String Length.
Interleave1DArray might give "unexpected" results for input arrays of different length…
(Btw. my snippet only works with plain ASCII. Handling Unicode strings the same way might also introduce "unexpected" results…)
07-27-2023 10:22 AM - edited 07-27-2023 10:23 AM
@GerdW wrote:
Hi Paul,
@paul_a_cardinale wrote:Or just put a Decrement function after the String Length.Interleave1DArray might give "unexpected" results for input arrays of different length…
(Btw. my snippet only works with plain ASCII. Handling Unicode strings the same way might also introduce "unexpected" results…)
You're right; it won't work correctly (because the input arrays are truncated to the length of the shortest one.