Extracting address

roarnold

Active Member
Licensed User
Longtime User
Evening,

In my array that have broke out into variables and placed in labels is an address.

The string is something like - Location: 123 Main St, USA 66501

It is sitting in the list variable and I am trying to extract jut the address portion of the string. I meed it so that I can reference mapping of the location.

I have looked at many forums and haven't quite found the right approach yet.

Any Ideas Anyone please.

Thanks,
Ron
 

roarnold

Active Member
Licensed User
Longtime User
Awesome Thank You kindly. I looked at all the strings, substrings, etc... I saw an example somewhat like what you posted but it was not something that could be readily received, picked.

I appreciate the help, Thank You Kindly,

R
:sign0142:
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Peacemaker,

Got it working. This is what I did:


Sub Button4_Click
Dim WebView1 As WebView
Dim callmap As String
WebView1.Initialize("")
Activity.LoadLayout("locate")

a = "Location: 123 Main St, USA 66501"
a = a.Replace ("Location: ", "")
Log(a) ' that is "123 Main St, USA 66501"

callmap = "https://www.google.com/search?q=" & a

WebView1.LoadUrl(callmap)
Activity.AddView(WebView1, 0, 0, 320, 430)

Return
End Sub

Thank you for the help on this.
Ron
 
Upvote 0
Top