• Mystic Display Code Question

    From stizzed@21:4/156 to All on Wednesday, June 05, 2019 14:19:45
    Is there a way to truncate the Mystic 'Current Message Base' Display Code (|MB)? I would like to truncate the output display to just 25 characters.

    Thanks for your consideration.

    -Stizz

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: The ROCK BBS III - therockbbs.net - TELNET:10023 (21:4/156)
  • From Netsurge@21:4/154 to stizzed on Wednesday, June 05, 2019 14:48:58
    Is there a way to truncate the Mystic 'Current Message Base' Display Code (|MB)? I would like to truncate the output display to just 25
    characters.

    Yup, precede |MB with |$T25 so it would look like |$T25|MB

    frank%netsurge%demonic
    disksh0p!bbs // bbs.diskshop.ca // mystic goodness
    home of SciNet // https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: !disksh0p!bbs! bbs.diskshop.ca ! mystic goodness ! (21:4/154)
  • From stizzed@21:4/156 to Netsurge on Wednesday, June 05, 2019 15:02:29
    Thank you ~much, Frank!!! (for everything)!

    -Stizz

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: The ROCK BBS III - therockbbs.net - TELNET:10023 (21:4/156)
  • From dream master@21:1/163 to stizzed on Wednesday, June 05, 2019 14:36:39
    On 05 Jun 2019, stizzed said the following...
    Is there a way to truncate the Mystic 'Current Message Base' Display Code (|MB)? I would like to truncate the output display to just 25
    characters.
    Thanks for your consideration.

    Function PADCT (S: String, N: Byte, C: Char) : String

    This function pads a string to the center with the specified
    character.

    Example:

    Var Str : String

    Str := PadCT('Hello World', 80, ' ')
    WriteLn (Str)

    The above example would display the text "Hello World" centered on
    the screen. The PadCT function returns the text "Hello World"
    centered in 80 spaces with the character of " " used to fill the
    blank spaces.

    Function PADLT (S: String, N: Byte, C: Char) : String

    This function returns a text string padded with spaces to the
    left side.

    Example:

    Var Str : String

    Str := PadLT('Hello World', 79, ' ')

    The above example would return a string which is 79 characters in
    length with the text "Hello World" as the leftmost part of the
    string. The passed character is the character that is used to
    fill the blank spaces.

    Function PADRT (S: String, N: Byte, C: Char) : String

    This function returns a text string padded with spaces to the
    right side.

    Example:

    Var Str : String

    Str := PadRT('Hello World', 79, ' ')

    The above example would return a string which is 79 characters in
    length with the text "Hello World" being the rightmost part of the
    string. The empty spaces are filled with the passed charcter (in
    this case ' ').

    |08 .|05ú|13ù|15Dr|07e|08am Ma|07st|15er|13ù|05ú|08.
    |08 øù|05ú|13ùø |13øù|05ú|08ùø
    |11 DoRE|03!|11ACiDiC|03!|11Demonic
    |08[|15bbs|09.|15dreamlandbbs|09.|15org|08]

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: |08--[|15!|07dreamland BBS bbs.dreamlandbbs.org (21:1/163)
  • From Netsurge@21:4/154 to stizzed on Wednesday, June 05, 2019 17:51:50
    Thank you ~much, Frank!!! (for everything)!


    No worries, glad to help.

    frank%netsurge%demonic
    disksh0p!bbs // bbs.diskshop.ca // mystic goodness
    home of SciNet // https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: !disksh0p!bbs! bbs.diskshop.ca ! mystic goodness ! (21:4/154)