MID format function in B4A?

Maki25

Member
Licensed User
Longtime User
Hello,

I need to know the correct way to divide a text basic4android. I explain;
visual basic code

Mid ("Visual Basic", 3, 4) = "sual"
possible?
Thanks
 
Last edited:

Maki25

Member
Licensed User
Longtime User
B4X:
"Visual Basic".SubString(2,6)
or
B4X:
txt="Visual Basic"
txt1=txt.".SubString(2,6)

You find the help here:
Basic4android - Core

Best regards.

A note only

"Visual Basic".SubString(2,6) ' not work

"Visual Basic".SubString(2)= "sual Basic"
"Visual Basic".SubString2(0,7)= "Visual B"

regards
Oscar
 
Last edited:
Upvote 0
Top