Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Run Time error in Format() function

Run Time error in Format() function

Scheduled Pinned Locked Moved Visual Basic
help
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravindra Bisen
    wrote on last edited by
    #1

    Hi, i am new for this. I am trying to compile an old VB project but it is giving error in a line like [Can't find Project Or Library] strdate = Format(Now,"YYYY-MM-DD-HH.MM.SS") why it is giving this error . do i need to add any reference for this. please help me Thanks :confused::rose:

    I 1 Reply Last reply
    0
    • R Ravindra Bisen

      Hi, i am new for this. I am trying to compile an old VB project but it is giving error in a line like [Can't find Project Or Library] strdate = Format(Now,"YYYY-MM-DD-HH.MM.SS") why it is giving this error . do i need to add any reference for this. please help me Thanks :confused::rose:

      I Offline
      I Offline
      i i i
      wrote on last edited by
      #2

      no "-" after DD strdate = Format(Now,"YYYY-MM-DD HH.MM.SS") and also check by going to your references , it will show you the missing Project Library starting with the word Missing that is there any lib missing also or not. :)

      Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

      R D 2 Replies Last reply
      0
      • I i i i

        no "-" after DD strdate = Format(Now,"YYYY-MM-DD HH.MM.SS") and also check by going to your references , it will show you the missing Project Library starting with the word Missing that is there any lib missing also or not. :)

        Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

        R Offline
        R Offline
        Ravindra Bisen
        wrote on last edited by
        #3

        Ya it shows the MISSING : APEX Array Object it refers to xarray32.ocx but i thought it is other problem.is it ?

        I 1 Reply Last reply
        0
        • I i i i

          no "-" after DD strdate = Format(Now,"YYYY-MM-DD HH.MM.SS") and also check by going to your references , it will show you the missing Project Library starting with the word Missing that is there any lib missing also or not. :)

          Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

          D Offline
          D Offline
          Daniel Engelkes
          wrote on last edited by
          #4

          Have your tried the FormatDateTime() function.

          R 1 Reply Last reply
          0
          • R Ravindra Bisen

            Ya it shows the MISSING : APEX Array Object it refers to xarray32.ocx but i thought it is other problem.is it ?

            I Offline
            I Offline
            i i i
            wrote on last edited by
            #5

            try to add reference Manually to that missing library if it doesnot exits at that location

            Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

            1 Reply Last reply
            0
            • D Daniel Engelkes

              Have your tried the FormatDateTime() function.

              R Offline
              R Offline
              Ravindra Bisen
              wrote on last edited by
              #6

              hi i got the solution i just unchecked the missing component and compiled it again. that it now my application is running. Thanks! :laugh:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups