iOS Question String functions like right, left, etc..

inakigarm

Well-Known Member
Licensed User
Longtime User
Hi:

I'm looking for this kind of string functions in B4i but I haven't found them

If there's no core or additional string functions library, is there another option ??(regex alternative or inline objective C code for ex ??

Thanks
 

John Sparrow

Member
Licensed User
Longtime User
Hi. I am not clear how I can use SubString or SubString2 in B4i. There does not appear to be a StringFunctions library.Can anyone advise?
 
Upvote 0

inakigarm

Well-Known Member
Licensed User
Longtime User
It depends about the string function you want; if you want to implement Left$ or Right$ is easy to code in a class module (with substring)
 
Upvote 0

John Sparrow

Member
Licensed User
Longtime User
Thanks. My b4a implementation saves out a 24 character progress code which, on reloading, is then read and parsed into the respective variables using ProgressCode.SubString2(0,1) etc.

Substring does not work in b4i. I heard that the b4a stringfunctions library could somehow be run as a module in b4i but I don't know how.

Any ideas?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
What is not working with SubString2 in B4i ?
txt1 = ProgressCode.SubString2(0, 1)
Returns the first character in ProgressCode.
It's the same as in B4A.
StringFunctions, in B4A, was developped by margret as a code module at the beginning and afterwards compiled to a library.
 
Upvote 0

davepamn

Active Member
Licensed User
Longtime User
Will Stringfunctions become a shared module in future releases. I really like the functionality of SF
 
Upvote 0
Top