Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: Crystal report - how to split a field into more fields

$
0
0

Hi Radek,

 

Using this formula

stringVar array x := split({cparty.STREET_ADD},Chr(13));

Local numberVar i;

Local stringVar outputString := "";

For i:=1 to Count(x) do

(

outputString := outputString + x[i] + Chr(13)

);

outputString;

 

I`ve able to achieve this (one field in crystal report):

STEHLIKOVA 977

165 00 PRAHA 620 - SUCHDOL

165 00

 

But I`m facing another problem now - I`d like to separate the address above into 3 separated crystal reports fields, e.g.:

[street] - STEHLIKOVA 977

[city] - 165 00 PRAHA 620 - SUCHDOL

[zip code] - 165 00

 

Thank you.

 

Petr


Viewing all articles
Browse latest Browse all 9069

Trending Articles