ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Combining three fields into one

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Combining three fields into one

    I need to combine three individual fields into one field.

    Example:

    Address3 = 30 characters
    State= 2 characters
    Zip code= 10 characters

    What is the best way to combine these three fields into one field and take out the extra space.

    Thanks,

    DAC

  • #2
    Re: Combining three fields into one

    myfield = %Trimr(address3) + ' ' + state + ' ' + zip;
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment

    Working...
    X