Results 1 to 3 of 3

Thread: MSGBOX CountDownFormat?

  1. #1
    Member marcuslee's Avatar
    Join Date
    Sep 2008
    Location
    Kansas, USA
    Age
    42
    Posts
    222
    Rep Power
    38

    MSGBOX CountDownFormat?

    The message box has a parameter to alter the format of the count down. What are the possible values?



    Mark

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: MSGBOX CountDownFormat?

    I think they are the same as for format$.

    "00.00" will use two digits for seconds (or more when needed, but 2 is minimum), and two after the decimal.
    "#.00" will use any number of digits for seconds, and two after the decimal.
    "#.#" will use any number of digits for seconds, and any after the decimal.

    ...and so on.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: MSGBOX CountDownFormat?

    Yes, it is used to specify a user format for seconds and milliseconds:
    thinBasic calculates time remaining to timeout and show using below code.
    [code=thinbasic]FORMAT$((TimeRemain / 1000), gTimerFmt)[/code]

    With a user format is possible to just show seconds or 10th of second and so on.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •