M Mina Magdy New Member Licensed User Oct 6, 2017 #1 I am a VB.net programmer for many years and few days ago a bought my licence for B4A. i am trying to use the string manipulation function (the Mid function to be exact). I added the library files in the extra libraries folder and from the libraries Manager i added StringFunction v 1.05. Then I added this Code Sub Globals Dim SF As StringFunctions SF.Initialize End Sub now when i use the Mid function it gives as error (Undeclared variable "mid" is used before it was assigned to any value). what am i missing here??
I am a VB.net programmer for many years and few days ago a bought my licence for B4A. i am trying to use the string manipulation function (the Mid function to be exact). I added the library files in the extra libraries folder and from the libraries Manager i added StringFunction v 1.05. Then I added this Code Sub Globals Dim SF As StringFunctions SF.Initialize End Sub now when i use the Mid function it gives as error (Undeclared variable "mid" is used before it was assigned to any value). what am i missing here??
NJDude Expert Licensed User Longtime User Oct 6, 2017 #2 I would suggest you familiarize with the native way of manipulating strings in B4A, there is documentation and samples posted on the forum. Welcome to B4A!!! Upvote 0
I would suggest you familiarize with the native way of manipulating strings in B4A, there is documentation and samples posted on the forum. Welcome to B4A!!!
M Mina Magdy New Member Licensed User Oct 6, 2017 #3 Please send me a link of where to start!! Upvote 0
NJDude Expert Licensed User Longtime User Oct 6, 2017 #4 You can either search the forums (look at that beautiful box on top of the screen labeled SEARCH) or check this LINK Upvote 0
You can either search the forums (look at that beautiful box on top of the screen labeled SEARCH) or check this LINK
Misterbates Active Member Licensed User Oct 6, 2017 #5 A variable of type string is actually an instance of a String object https://www.b4x.com/android/help/core.html#string Instead of mid() look at https://www.b4x.com/android/help/core.html#string_substring2 Upvote 0
A variable of type string is actually an instance of a String object https://www.b4x.com/android/help/core.html#string Instead of mid() look at https://www.b4x.com/android/help/core.html#string_substring2
Knoppi Active Member Licensed User Longtime User Oct 6, 2017 #6 I think you use the StringFunctions Library from margret https://www.b4x.com/android/forum/threads/string-functions.10365/ https://www.b4x.com/android/forum/threads/string-functions.10365/ you can use the Functions like this Code: Copy Dim SF As StringFunctions SF.Initialize Dim str As String = SF.Mid( TextStr, Start, Length) Upvote 0
I think you use the StringFunctions Library from margret https://www.b4x.com/android/forum/threads/string-functions.10365/ https://www.b4x.com/android/forum/threads/string-functions.10365/ you can use the Functions like this Code: Copy Dim SF As StringFunctions SF.Initialize Dim str As String = SF.Mid( TextStr, Start, Length)