Results 1 to 4 of 4

Thread: Easy formatting question.......

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Talking Easy formatting question.......

    Ok, I'm getting an "Object Required error" on this code, I'm probably just leaving something out!
    VB Code:
    1. Dim strMins as string, strSecs as string, strLength as string
    2. strMins = CMp3info.Duration \ 60
    3. strSecs = CMp3info.Duration Mod 60
    4. Format(strLength, "0#:0#") = strMins & ":" & strSecs

    any help appreciated.

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    VB Code:
    1. Format(strLength, "0#:0#") = strMins & ":" & strSecs

    Change this to:

    VB Code:
    1. strLength = Format(strMins & ":" & strSecs, "0#:0#")


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Talking 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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    I got it!

    If resolved the problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width