Hi i would like to know if the following is possible:
define variable vc-add4 as character no-undo.
define variable vc-pcode as character no-undo.
assign vc-add4 = "Norfolk N15 7Bx"
vc-pcode = "N15 7bx".
I would like to search for the post code (vc-pcode) in the address line (vc-add4), and if it exists strip it out. I can achieve this using the index function and substring.
My problem is this, sometimes the postcode in the address line will contain two or more spaces ie N15 7Bx, whilst the postcode only contains one space.
Is there a way to identify and strip out the postcode from the address line in this case?
Winnt 4.0 9.1d.
define variable vc-add4 as character no-undo.
define variable vc-pcode as character no-undo.
assign vc-add4 = "Norfolk N15 7Bx"
vc-pcode = "N15 7bx".
I would like to search for the post code (vc-pcode) in the address line (vc-add4), and if it exists strip it out. I can achieve this using the index function and substring.
My problem is this, sometimes the postcode in the address line will contain two or more spaces ie N15 7Bx, whilst the postcode only contains one space.
Is there a way to identify and strip out the postcode from the address line in this case?
Winnt 4.0 9.1d.