Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse Latitude and Longitude from Crystal Report Field

Status
Not open for further replies.

chadd39

MIS
Jan 20, 2004
1
US
Need to parse Lat and Long from field named {cust.custprob}. See field contents below:

***** REGULAR *****

TIME..13:42 DATE..12/14/2017

REQUEST NO...20175004859

LATITUDE..43.6602240 LONGITUDE..-70.2579034

STATE.........MAINE
MUNICIPALITY..PORTLAND

STREET...MYRTLE ST / CUMBERLAND AVE

NEAREST CROSS STREET 1..


--------------------------------------------------------------------------
NATURE OF WORK..INSTALL WATER VALVE

EXTENT OF WORK
IN THE PAVED INTERSECTION



 
//{@Latitude}:
local stringvar x := {cust.custprob};
trim(extractstring(x,"LATITUDE..","LONGITUDE"));

//{@Longitude}:
local stringvar x := {cust.custprob};
trim(extractstring(x,"LONGITUDE..",CHR(13)));

This should work as long as the rows end with a return. If they end with a line feed, try chr(10);

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top