Why not?

Discussion in 'Questions (Windows Mobile)' started by kamis, Jun 2, 2009.

  1. kamis

    kamis Member Licensed User

    '****************************************
    ' Hi. Now I have another problem.
    ' This works on my desktop but not on device
    '****************************************


    Sub Globals
    'Declare the global variables here.

    End Sub

    Sub App_Start
    Form1.Show
    tiempoant= Now
    timer1.interval=1
    timer1.Enabled= True
    End Sub

    Sub centesimas(cen)
    cen1 = SubString (cen,StrLength(cen)-8, 2)
    Return cen1
    End Sub

    Sub Timer1_Tick
    TimeFormat("mm:ss")
    insofacto=Now
    label1.Text =Time (insofacto-tiempoant) & "." & centesimas(insofacto-tiempoant)
    End Sub
     
    Last edited: Jun 2, 2009
  2. Erel

    Erel Administrator Staff Member Licensed User

    What error do you get on the device?
     
  3. kamis

    kamis Member Licensed User

    No error. Just what does that have to do. It seems that the timer on the device does not have much resolution. Need cents!
     
  4. agraham

    agraham Expert Licensed User

    This is much too short an interval for practical use. About 10 milliseconds is a realistic minimum and maybe even longer for the device.
     
  5. kamis

    kamis Member Licensed User

    Erel. It does not work either 10 or 100
     
  6. kamis

    kamis Member Licensed User

    I can do a stopwatch with hundredths. But I can't do it.
     
  7. kamis

    kamis Member Licensed User

    Last edited: Jun 2, 2009
  8. klaus

    klaus Expert Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice