I need to replace a portion of a string but my code does nothing.
Value contains an http://www.myserver.com/images/image-res.php?q=90&zc=2&w=100&src=picture.jpg that needs to be http://www.myserver.com/images/picture.jpg with replace function, but i always get the same, nothing is replaced.
My code
Any idea? im newbie
Value contains an http://www.myserver.com/images/image-res.php?q=90&zc=2&w=100&src=picture.jpg that needs to be http://www.myserver.com/images/picture.jpg with replace function, but i always get the same, nothing is replaced.
My code
B4X:
Sub clv_ItemClick (Index As Int, Value As Object)
Dim job As HttpJob
job.Initialize("j", Me)
Dim pdown1 As String
pdown1=Value
pdown1 = pdown1.Replace("/image-res.php?q=90&zc=2&w=100&src=", "/")
job.Download(pdown1)
End Sub
Any idea? im newbie