String manipulation

For general Flowcode discussion that does not belong in the other sections.
Post Reply
RGV250
Posts: 283
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

String manipulation

Post by RGV250 »

Hi,
First post so hopefully it is in the right place.
I am used to PLC's and Microcontrollers in BASIC so this is a bit new to me.
I am just starting with the demo, I am trying to read a string in, I don't think I will have a problem there but then I need to split it into sections.
If I were using BASIC I would use something like Left$() or Mid$() to split the string but I cannot find anything similar in Flowcode.

Regards,
Bob

medelec35
Matrix Staff
Posts: 1920
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 622 times
Been thanked: 645 times

Re: String manipulation

Post by medelec35 »

Hello.
Yes this is a good place for your question.
Take a look at this Wiki page
I would recommend Introduction to Microcontroller Programming for learning how to use Flowcode.
Martin

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: String manipulation

Post by RGV250 »

Thanks, just what I was looking for. I was looking under component help.

Bob

medelec35
Matrix Staff
Posts: 1920
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 622 times
Been thanked: 645 times

Re: String manipulation

Post by medelec35 »

That's great, thanks for letting us know.
If you want to find the string manipulation via flowcode help.
Double click on the calculation Command Icon. which will show the Properties.
Click on the ? bottom left.
Scroll down on the new window that opens.
Just below the Variable and Function Boxheading you will see a string function link.
There is also a mathematical function link as well.
Something that can catch beginners to Flowcode out.
If comparing variable values, don't use

Code: Select all

AND OR NOT
use && for AND, || (pipe key next to Z on UK keyboards) for OR and ! for NOT
Martin

Post Reply