B4J Question String Functions

Nokia

Active Member
Licensed User
Longtime User
Where did the functions left, right, mid or substring go?
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

left, right and the mid function were not needed you can do that all with Substring and Substring2. Substring is a method of the String object:

B4X:
    Dim test As String = "test"
    test = test.SubString(2)
    test = test.SubString2(0,1)

Jan
 
Upvote 0

Nokia

Active Member
Licensed User
Longtime User
Hi,

left, right and the mid function were not needed you can do that all with Substring and Substring2. Substring is a method of the String object:

B4X:
    Dim test As String = "test"
    test = test.SubString(2)
    test = test.SubString2(0,1)

Jan

thanks.. what I was looking for....
 
Upvote 0
Top