Joined: 11 Nov 2008
Location: United States
Online Status: Offline
Posts: 4
Topic: Seperating a text X/Y field Posted: 11 Nov 2008 at 2:45pm
I have a field {INMAST_VIEW.Map_Coordinates} that looks like this:
-96.123456/30.123456
I need to separate the lat from the long and put them in separate fields on the report.
I have used
Right ({INMAST_VIEW.Map_Coordinates},9 ) and
Left ({INMAST_VIEW.Map_Coordinates},10 )
but end up with a few fields that display the below
-96.1234/ or /30.12345
How can I make sure that everything to the right of the "/" is put in the long field regardless of the length, and everything to the left of the "/" is put in the Lat?
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 11 Nov 2008 at 3:21pm
There are a couple of ways you can do this. Probably the easiest way is to use the Split function which returns an array of the values. You would use it this way to get the first value:
Joined: 11 Nov 2008
Location: United States
Online Status: Offline
Posts: 4
Posted: 12 Nov 2008 at 6:27am
THIS IS AWESOME! Thank you so much for your help! I had Tried Split first but didn't get the [1] or [2] part at the end right. It works like a champ now!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum