Giusy Active Member Licensed User Feb 24, 2019 #1 Hi, I followed the tutorial at this address https://www.b4x.com/android/forum/threads/string-functions.10365/ Copy the StringFunctions.jar and StringFunctions.xml to the Extra Libraries folder. I copied them to my "ANDROID LIBRERIE" folder In "Configure Paths" I have : additional library: C:\ANDROID LIBRERIE I wrote this code: B4X: Expand Collapse Copy Sub Globals Dim sf As StringFunctions sf.Initialize End Sub but "sf" is in red and writes "Are you missing a library reference? What did I forget? Thanks
Hi, I followed the tutorial at this address https://www.b4x.com/android/forum/threads/string-functions.10365/ Copy the StringFunctions.jar and StringFunctions.xml to the Extra Libraries folder. I copied them to my "ANDROID LIBRERIE" folder In "Configure Paths" I have : additional library: C:\ANDROID LIBRERIE I wrote this code: B4X: Expand Collapse Copy Sub Globals Dim sf As StringFunctions sf.Initialize End Sub but "sf" is in red and writes "Are you missing a library reference? What did I forget? Thanks
Giusy Active Member Licensed User Feb 24, 2019 #2 In libraries manager I added "StringFunctions" Now the error has disappeared, but (for exemple) Dim(....) is in red Thank you Upvote 0
In libraries manager I added "StringFunctions" Now the error has disappeared, but (for exemple) Dim(....) is in red Thank you
S samikinikar Member Licensed User Longtime User Feb 24, 2019 #3 I guess you did not select the StringUTILS library in the libraries manager ✓ StringUtils(Version 1.12) Upvote 0
I guess you did not select the StringUTILS library in the libraries manager ✓ StringUtils(Version 1.12)
Giusy Active Member Licensed User Feb 24, 2019 #5 Yes @samikinikar, I have also StringUtils(Version 1.12) Upvote 0
klaus Expert Licensed User Longtime User Feb 24, 2019 #6 I would not use the StringFunctions library, it is no more supported. The author, margret, seems to be inactive in the forum for about three years. I suggest you to learn to use the 'standard' B4A functions Upvote 0
I would not use the StringFunctions library, it is no more supported. The author, margret, seems to be inactive in the forum for about three years. I suggest you to learn to use the 'standard' B4A functions
Giusy Active Member Licensed User Feb 24, 2019 #7 Hi @klaus where can I find a tutorial? Thanks Upvote 0
klaus Expert Licensed User Longtime User Feb 24, 2019 #8 You may have look at chapter 4.9 String manipulation in the B4X Basic Language booklet. Upvote 0
Giusy Active Member Licensed User Feb 24, 2019 #10 Hi @klaus I read the tutorial in point 4.9 but I did not find what I was looking for. What I have to do is very simple, but not knowing the instructions becomes difficult I have a string that contain "0001abscd3efgh" I want to obtain two strings The first with "0001" The second with "abscd3efgh" Every time the first four characters Help me please Thank you Upvote 0
Hi @klaus I read the tutorial in point 4.9 but I did not find what I was looking for. What I have to do is very simple, but not knowing the instructions becomes difficult I have a string that contain "0001abscd3efgh" I want to obtain two strings The first with "0001" The second with "abscd3efgh" Every time the first four characters Help me please Thank you
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2019 #11 B4X: Expand Collapse Copy Dim s As String = "0001abscd3efgh" Dim First As String = s.SubString2(0, 4) 'from 0 to 4 excluding the last character Dim Second As String = s.SubString(4) 'from 4 Upvote 0
B4X: Expand Collapse Copy Dim s As String = "0001abscd3efgh" Dim First As String = s.SubString2(0, 4) 'from 0 to 4 excluding the last character Dim Second As String = s.SubString(4) 'from 4