format conversion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean Fournier

    #1

    format conversion

    Hi,
    i have a program that communicate with an other in DDE that transmit the
    output (in String format) of a Timer(countdown ) like this:
    T#0d0h0m0s0ms Exemple: T#0d0h5m30s0ms then T#0d0h5m29s0ms and over. I
    would like to be able to convert to Time format or Integer format to be able
    to use it in a progress bar.

    Pardon for my poor english...

    Merci!

    JF


  • Raoul Watson

    #2
    Re: format conversion


    "Jean Fournier" <bidule@sympa.c a> wrote in message
    news:sHTkb.505$ VQ3.122326@news 20.bellglobal.c om...[color=blue]
    > Hi,
    > i have a program that communicate with an other in DDE that transmit the
    > output (in String format) of a Timer(countdown ) like this:
    > T#0d0h0m0s0ms Exemple: T#0d0h5m30s0ms then T#0d0h5m29s0ms and over. I
    > would like to be able to convert to Time format or Integer format to be[/color]
    able[color=blue]
    > to use it in a progress bar.
    >
    > Pardon for my poor english...
    >
    > Merci!
    >
    > JF
    >[/color]

    My guess is that if you have it in a string then you must have the
    individual variables such as numdays, numhours, numminutes, numseconds. In
    that case simply convert it to seconds (sum up days, hours, mins, secs).
    Once you have this total figure, building a progress bar is simple.



    Comment

    Working...