Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Location
    Lisbon, Portugal
    Posts
    10

    System Time without seconds

    Hi guys, I'm making a project for all my things, and I want to put a clock on it, as simple as that, however, I wanted to put one without the seconds counting. Basically, now my clock has Hours, minutes and seconds counting, and I want to remove the seconds counting, just that.

    Currently I'm using this code:

    On Show

    Code:
    sPCtime = System.GetTime(TIME_FMT_MIL)
    Label.SetText("Label_Time", sPCtime)
    
    Page.StartTimer(1000);
    On Timer

    Code:
    sPCtime = System.GetTime(TIME_FMT_MIL)
    Label.SetText("Label_Time", sPCtime)
    Any suggestions?

    Thanks in advance

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    home295

    Since the System.GetTime(TIME_FMT_MIL) returns a string variable, one way would be to display your time variable using String.Left command.

    Label.SetText("Label_Time", String.Left(sPCtime, 5))

    Displaying the leftmost 5 characters HH:MM

    You were definately on the right track, keep experimenting and use the help file and search the forum. There is a wealth of knowledge there.

    Welcome to the forum.

  3. #3
    Join Date
    Jul 2007
    Location
    Lisbon, Portugal
    Posts
    10
    It worked perfectly, exactly what I needed, thank you very much holtgrewe

Similar Threads

  1. How can I make a Program Run Every Time the System Starts
    By Adam in forum Setup Factory 8.0 FAQ
    Replies: 0
    Last Post: 04-28-2008, 11:15 AM
  2. System time... Add an hour
    By mrdmx1024 in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 04-14-2008, 12:09 PM
  3. Check system date/ time every 30 Minutes
    By patrick6 in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 06-16-2004, 05:54 PM
  4. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM
  5. System Time
    By njlech in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 07-19-2001, 01:24 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