RemoveFromString$

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
chipfryer27
Valued Contributor
Posts: 1147
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

RemoveFromString$

Post by chipfryer27 »

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

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: RemoveFromString$

Post by Steve-Matrix »

Thanks, I'll look into this.

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: RemoveFromString$

Post by chipfryer27 »

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

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: RemoveFromString$

Post by Steve-Matrix »

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

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: RemoveFromString$

Post by BenR »

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.

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: RemoveFromString$

Post by chipfryer27 »

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

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: RemoveFromString$

Post by chipfryer27 »

Hi

It appears the Advanced String Function issue I mention are related to ESP, as I can compile to other targets.

Regards

Post Reply