CR11 Oracle db
I would like to create a parameter and place it in the record selection allowing a person to choose a street name.
{location.field} has a standardized pattern of street addresses, but there are a few variations because of breaks in the street name.
Here are a couple examples:
1011 W 52ND ST
1652 S DEL MONTE AV
324 E MAIN ST
I want to extract only the street name, by allowing a startswith{?Street} record seleciton.
52ND
DEL MONTE
MAIN
This would be very easy for me if there were no two element street names. The street name will always start in the third element. The problem is a street name that contains more than one word.
Creating a formula such as the one below, gives me the third element:
stringvar array x := split({GAPD_INMAST_VIEW.Location}," ");
x[3];
How do I add the fourth element. I realize that most of the street names will contain ("AV". "ST", etc in the fourth element) but this shouldn't be a problem since I will use a startwith command with the parameter, and most of the actual street name will be selected for the records.
I don't fully understand the use of "ubound" and I am puzzled on how to add that fourth element.
I would like to create a parameter and place it in the record selection allowing a person to choose a street name.
{location.field} has a standardized pattern of street addresses, but there are a few variations because of breaks in the street name.
Here are a couple examples:
1011 W 52ND ST
1652 S DEL MONTE AV
324 E MAIN ST
I want to extract only the street name, by allowing a startswith{?Street} record seleciton.
52ND
DEL MONTE
MAIN
This would be very easy for me if there were no two element street names. The street name will always start in the third element. The problem is a street name that contains more than one word.
Creating a formula such as the one below, gives me the third element:
stringvar array x := split({GAPD_INMAST_VIEW.Location}," ");
x[3];
How do I add the fourth element. I realize that most of the street names will contain ("AV". "ST", etc in the fourth element) but this shouldn't be a problem since I will use a startwith command with the parameter, and most of the actual street name will be selected for the records.
I don't fully understand the use of "ubound" and I am puzzled on how to add that fourth element.