Page 1 of 1

RemoveFromString$

Posted: Sat Sep 16, 2023 8:41 pm
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

Re: RemoveFromString$

Posted: Sun Sep 17, 2023 9:54 am
by Steve-Matrix
Thanks, I'll look into this.

Re: RemoveFromString$

Posted: Sun Sep 17, 2023 4:29 pm
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

Re: RemoveFromString$

Posted: Mon Sep 18, 2023 9:47 am
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

Re: RemoveFromString$

Posted: Mon Dec 04, 2023 2:56 pm
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.

Re: RemoveFromString$

Posted: Wed Dec 06, 2023 4:28 pm
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

Re: RemoveFromString$

Posted: Thu Dec 07, 2023 11:23 pm
by chipfryer27
Hi

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

Regards