User Tag List

Results 1 to 6 of 6

Thread: Clock zero question?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    twister's Avatar
    Join Date
    Jan 2007
    Location
    Pacific Northwest USA
    Posts
    376
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Clock zero question?

    After I convert 2400 time into hour and minute counters, is there a simple way to keep the zeros?

    example:
    1305 - mid$ into two counters
    counter hour: 13, to text string stays 13
    counter minute: 05, to text string becomes 5
    added together in a text string becomes 13:5 or 1:5 P.M.

    If a solution is merely an object, is it java compatible?

    I can do a work around by comparing the text len against 2, but I'm hoping there's a straight forward solution.

    thanks


  2. #2
    No Products Registered

    Join Date
    Jul 2009
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clock zero question?

    You might try something like this:

    ("counter minute")< 10
    Set alterable string to: "0"+Str$value("counter minute")

    ("counter minute")>= 10
    Set alterable string to: Str$value("counter minute")

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Clock zero question?

    Can't you just force the counter to two digits in the properties?
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    twister's Avatar
    Join Date
    Jan 2007
    Location
    Pacific Northwest USA
    Posts
    376
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Clock zero question?

    lost_child, I'll try it - I remember seeing something posted that was similar, but the equation was all in the change string, but now I can't find it.

    LB, yes it works as a counter, but when you set the counter into a string, the zero is dropped.

    Can anybody remember the post(s) which addressed this?

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Clock zero question?

    I have an idea:

    Left$("00", 2-Len("NUMBER HERE"))+"NUMBER HERE" should give it the correct number of zeros
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    twister's Avatar
    Join Date
    Jan 2007
    Location
    Pacific Northwest USA
    Posts
    376
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Clock zero question?

    Thanks LB, that's the one

    Last night searching my computer, I finally found this one from that post I can't find.

    Left$("0",2-Len(Str$(value("Minutes"))))+Str$(value("Minutes") )+":"+Left$("0",2-Len(Str$(value("Seconds"))))+Str$(value("Seconds") )

    Thanks for the help

Similar Threads

  1. Clock / Alarm
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 29th August 2020, 09:46 AM
  2. Clock hands
    By Pineapple in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 29th March 2013, 09:35 PM
  3. Dragging a clock's hand... Math question
    By Christian_Wheel in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th August 2010, 11:30 PM
  4. The Death Clock
    By Game_Master in forum File Archive
    Replies: 25
    Last Post: 21st January 2008, 09:41 PM

Posting Permissions

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