|
-
Jun 30th, 2002, 02:22 PM
#1
Thread Starter
Fanatic Member
Easy formatting question.......
Ok, I'm getting an "Object Required error" on this code, I'm probably just leaving something out! 
VB Code:
Dim strMins as string, strSecs as string, strLength as string
strMins = CMp3info.Duration \ 60
strSecs = CMp3info.Duration Mod 60
Format(strLength, "0#:0#") = strMins & ":" & strSecs
any help appreciated.
-
Jun 30th, 2002, 02:27 PM
#2
Frenzied Member
VB Code:
Format(strLength, "0#:0#") = strMins & ":" & strSecs
Change this to:
VB Code:
strLength = Format(strMins & ":" & strSecs, "0#:0#")
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Jun 30th, 2002, 02:45 PM
#3
Thread Starter
Fanatic Member
Formatting problems.......
Man I hate formatting!
I can't get the correct format. "00:00" returns exactly that, and "mm:ss"returns "12:00", and "##:##" returns " : ". I had this problem once before, but I can't remember how I resolved it.
-
Jun 30th, 2002, 03:17 PM
#4
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|