Left Justify and pad with spaces

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Left Justify and pad with spaces

  • Creator
    Topic
  • #53719
    Corey Lewis
    Participant

      I have a field that I need to look like so…

      “L     “?    That’s an L with 5 spaces after it, I don’t need the quotes.

      Can I do that with a tcl fragment?

    Viewing 0 reply threads
    • Author
      Replies
      • #78724
        bill bearden
        Participant

          Try something like this…

          Code:

          set a “L”
          set b [format %-5s $a]

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.