I am attempting to obtain the "filename" from within a string.
In this example, the filename is:
The complete string (MyGetFrom) received from a WebSocket is:
How do I "extract" the "touchphotogrey.png" from the "MyGetFrom" string?
I have tried:
But this not working
In this example, the filename is:
B4X:
touchphotogrey.png
B4X:
https://api.appery.io/rest/1/db/files/58870186e4b07690b0043107/2003060e-5b47-440a-95ba-507b43de2c14.touchphotogrey.png
I have tried:
B4X:
Dim MyGetFrom As String = rxHW.Get(10)
Dim ANS As List
ANS = sf.split(MyGetFrom, ".")
Log("My List: " & ANS)
Dim ANSINT As Int
ANSINT = ANS.Size
Dim MyFileName As String = ANS(ANSINT -1)