ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

DSPATR(UL) only in a part of a SFL field

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

  • DSPATR(UL) only in a part of a SFL field

    I'm trying to create a SFL where the fields i return aren't always from the same size.

    I'm passing in a SFL field, and i want to put the DSPATR(UL) only on the leght of the field.

    Example:
    NAME: Robert Junior
    City: Orlando
    Country: United States of America

    What i want:
    NAME: Robert Junior
    City: Orlando
    Country: United States of America

    What i get:
    NAME: Robert Junior________
    City: Orlando____________
    Country: United States of America_

    And the worst, the field input

    Any idea how to do this?


  • #2
    For the output fields add an attribute byte to the end of the string being underlined. x'20' will end the underline.

    Comment


    • #3
      Hallo. As UserName10 allready says, try to add the hex-attributes direct into your string:

      SflField = 'Country:' + x'24' + 'United States of America' + x'20';

      Simple IMAP-mailviewer for IBMi. Contribute to PantalonOrange/Mailviewer development by creating an account on GitHub.
      Last edited by Chris Brunner; April 20, 2021, 12:30 AM.

      Comment


      • #4
        Thanks UserName10 and Chris Brunner.

        Comment

        Working...
        X