Hi
When I include in a calculation icon the RemoveFromString$ function (e.g. Hex = RemoveFromString$(Hex,2,0) where Hex is a string), it simulates correctly but returns an error when compiling
:0:: error: (499) undefined symbol:
_FCI_REMOVEFROMSTRING(FLOWCODE_Test.o)
(908) exit status = 1
If I disable the calculation then the rest compiles OK.
I'm using it to remove the "0x" from a string (e.g. if Hex = 0xff it returns ff) and I can also do it by getting length of string then a calculation using the Right$ function (length-2) etc which does compile but is a bit of a faff.
Regards
RemoveFromString$
-
- Valued Contributor
- Posts: 1181
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 417 times
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
-
- Valued Contributor
- Posts: 1181
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 417 times
Re: RemoveFromString$
Hi Steve
Thanks, no hurry though. I can use Right$ for now. Never really needed it before but it's a handy little function.
Regards
Thanks, no hurry though. I can use Right$ for now. Never really needed it before but it's a handy little function.
Regards
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
Re: RemoveFromString$
I've just checked and the following string functions are missing from the CAL. This should be an easy fix and will be done soon.
Code: Select all
Utf8Len
Contains
SplitString
ExplodeToIntArray
ExplodeToFloatArray
ImplodeFromIntArray
ImplodeFromFloatArray
Int2FormattedString
Float2FormattedString
InsertString
RemoveFromString
SearchAndReplace
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: RemoveFromString$
For now the advanced string functions component from the storage category should do most of these missing functions.
I'll get the embedded versions added ASAP.
I'll get the embedded versions added ASAP.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 1181
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 417 times
Re: RemoveFromString$
Hi
In a working file I swapped over some "work arounds" to instead include the following Advanced String Functions
Contains
PositionOf
RemoveFrom
Now when I compile (to an ESP32-Lolin) it fails citing amongst others, issues with Strings.
Regards
In a working file I swapped over some "work arounds" to instead include the following Advanced String Functions
Contains
PositionOf
RemoveFrom
Now when I compile (to an ESP32-Lolin) it fails citing amongst others, issues with Strings.
Regards
-
- Valued Contributor
- Posts: 1181
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 417 times
Re: RemoveFromString$
Hi
It appears the Advanced String Function issue I mention are related to ESP, as I can compile to other targets.
Regards
It appears the Advanced String Function issue I mention are related to ESP, as I can compile to other targets.
Regards