How to conver a numeric (SOLVED)

Mac OSX specific forum
codeit
User
User
Posts: 62
Joined: Sat Apr 15, 2017 5:53 pm
Location: Leicestershire

How to conver a numeric (SOLVED)

Post by codeit »

Hi guys i am at the stage now where i am trying to display a number format like "00:00"
with SetGadgetText(10, Str(PeekD(@time))) this just produces a single number how can i get it to show
like "00:00"

Regards
codeit :mrgreen:
Last edited by codeit on Fri Jul 21, 2017 2:43 pm, edited 1 time in total.
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: How to conver a numeric

Post by skywalk »

Use StrD().
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
codeit
User
User
Posts: 62
Joined: Sat Apr 15, 2017 5:53 pm
Location: Leicestershire

Re: How to conver a numeric

Post by codeit »

Thank's skywalk but i had sorted it by the time i got this reply.

Code: Select all

SetGadgetText(10, FormatDate("%ii:%ss", time))
Post Reply