time extraction
Archiver
Posts: 46,084
I need to extract the seconds value from the TIME$ function using
Quick Basic. I have been able to get the hours and minutes values
by using the val(left $)and val(mid) functions but the val(right$)
always returns a "0". Can someone shed some light on this or is
a quirk of QB or the function itself?
I am using a Stamp2 in this project but the time keeping and logging
is being handle on a PC.
TIA, Frank
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
Quick Basic. I have been able to get the hours and minutes values
by using the val(left $)and val(mid) functions but the val(right$)
always returns a "0". Can someone shed some light on this or is
a quirk of QB or the function itself?
I am using a Stamp2 in this project but the time keeping and logging
is being handle on a PC.
TIA, Frank
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
Comments
somestring = mid$(time$,7,2)
or the numeric 'value'
someval = val(mid$(time$,7,2))
Hope this helps
Bob
At 07:31 AM 11/2/00 -0500, you wrote:
>I need to extract the seconds value from the TIME$ function using
>Quick Basic. I have been able to get the hours and minutes values
>by using the val(left $)and val(mid) functions but the val(right$)
>always returns a "0". Can someone shed some light on this or is
>a quirk of QB or the function itself?
> I am using a Stamp2 in this project but the time keeping and logging
>is being handle on a PC.
>TIA, Frank
>________________________________________________________________
>YOU'RE PAYING TOO MUCH FOR THE INTERNET!
>Juno now offers FREE Internet Access!
>Try it today - there's no risk! For your FREE software, visit:
>http://dl.www.juno.com/get/tagj.
>
>
>
>
>
Frank
On Thu, 02 Nov 2000 07:45:24 -0500 Sample Bandit <tesla@i...> writes:
>
>If you just want the string of the seconds use
>
>somestring = mid$(time$,7,2)
>
>or the numeric 'value'
>
>someval = val(mid$(time$,7,2))
>
>Hope this helps
>Bob
>
>
>At 07:31 AM 11/2/00 -0500, you wrote:
>>I need to extract the seconds value from the TIME$ function using
>>Quick Basic. I have been able to get the hours and minutes values
>>by using the val(left $)and val(mid) functions but the val(right$)
>>always returns a "0". Can someone shed some light on this or is
>>a quirk of QB or the function itself?
>> I am using a Stamp2 in this project but the time keeping and
>logging
>>is being handle on a PC.
>>TIA, Frank
>>________________________________________________________________
>>YOU'RE PAYING TOO MUCH FOR THE INTERNET!
>>Juno now offers FREE Internet Access!
>>Try it today - there's no risk! For your FREE software, visit:
>>http://dl.www.juno.com/get/tagj.
>>
>>
>>
>>
>>
>
>
>
>
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.