Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

for some reason I am having a mental block. All I am trying to do is format the current position in media player to have tenths of a second using the current position on mediaplayer, timeserial, and format. I get everything I want except the tenths of a second.

 


mpPlayer.CurrentPosition returns 27.5472404

TimeSerial(0, 0, mpPlayer.CurrentPosition) returns 12:00:31 AM

Format(TimeSerial(0, 0, mpPlayer.CurrentPosition), "m:ss.f") returns 0:31.0
but it is always .0

 

Any suggestions on how can I get tenths of a second?

 

 

Thanks

 

ZeroEffect

If you can't find it, Build It.

 

There is no place Like 127.0.0.1 also don't forget 1 + 1 = 10

Posted

I am currently working with this but I seem to be missing something.

 

TempData = Format(TimeSerial(0, 0, mpPlayer.CurrentPosition), "m:ss.") &_
Format(mpPlayer.CurrentPosition - Int(mpPlayer.CurrentPosition), "f") 

This returns 0:00.0.00 not 0:00.0

 

thanks for any thoughts you may have,

 

ZeroEffect

If you can't find it, Build It.

 

There is no place Like 127.0.0.1 also don't forget 1 + 1 = 10

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...