B B4JExplorer Active Member Licensed User Longtime User Dec 11, 2013 #1 Hi, Is StringFunctions available for B4J? It's referenced at http://www.b4x.com/android/help/stringfunctions.html , and was hoping there's a compatible version. I specifically need it for extracting area codes and other parts of written phone numbers, which vary in formats like '9999999999' and '999-999-9999', without having to write any custom Select code.
Hi, Is StringFunctions available for B4J? It's referenced at http://www.b4x.com/android/help/stringfunctions.html , and was hoping there's a compatible version. I specifically need it for extracting area codes and other parts of written phone numbers, which vary in formats like '9999999999' and '999-999-9999', without having to write any custom Select code.
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2013 #2 No. Though I expect the source code of this library to be compatible with B4J. Upvote 0
B B4JExplorer Active Member Licensed User Longtime User Dec 11, 2013 #3 Erel said: No. Though I expect the source code of this library to be compatible with B4J. Click to expand... Ok thanks, I'll figure it out, or locate a library that deals with phone number formats. Upvote 0
Erel said: No. Though I expect the source code of this library to be compatible with B4J. Click to expand... Ok thanks, I'll figure it out, or locate a library that deals with phone number formats.
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2013 #4 You don't need any library to parse text. Upvote 0
B B4JExplorer Active Member Licensed User Longtime User Dec 12, 2013 #5 Erel said: You don't need any library to parse text. Click to expand... Thanks Erel, but it wasn't really about parsing text. That's straightforward enough. For some reason, I thought that the Stringfunctions class had some functionality specifically dedicated towards phone numbers. But that was obviously some other site. But yeah, it turns out that the entry form which produces these numbers, forces an area code, and only accepts U.S. numbers. So, all I had to do was sPhone.Replace() dashes, spaces, and parentheses with blanks, generating a canonical form 9999999999, which was then parsed out easily. All set, thanks. Upvote 0
Erel said: You don't need any library to parse text. Click to expand... Thanks Erel, but it wasn't really about parsing text. That's straightforward enough. For some reason, I thought that the Stringfunctions class had some functionality specifically dedicated towards phone numbers. But that was obviously some other site. But yeah, it turns out that the entry form which produces these numbers, forces an area code, and only accepts U.S. numbers. So, all I had to do was sPhone.Replace() dashes, spaces, and parentheses with blanks, generating a canonical form 9999999999, which was then parsed out easily. All set, thanks.