Ways to Optimized Visual Basic Softwares

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mariusseven
    New Member
    • Mar 2008
    • 19

    Ways to Optimized Visual Basic Softwares

    I need ideas of how to make visual basic programs perform faster without compromising its details and efficiency.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    What the program is all about ?

    Anything related to database or file handling ?

    Comment

    • mariusseven
      New Member
      • Mar 2008
      • 19

      #3
      Yes, its all about retrieving database files and storing them.

      Originally posted by debasisdas
      What the program is all about ?

      Anything related to database or file handling ?

      Comment

      • kadghar
        Recognized Expert Top Contributor
        • Apr 2007
        • 1302

        #4
        Originally posted by mariusseven
        Yes, its all about retrieving database files and storing them.
        it might require some work, but you can check what in newer versions is "Option Strict" which means you'll always work with the correct variable type, so no implicit conversions will be made.

        Then, use the $ functions while working with strings, for example.

        Comment

        • mariusseven
          New Member
          • Mar 2008
          • 19

          #5
          Is that option available in Visual Basic 6.0 or only in newer versions? I have this idea of emptying the memory of the computer after every event, does this help?


          Originally posted by kadghar
          it might require some work, but you can check what in newer versions is "Option Strict" which means you'll always work with the correct variable type, so no implicit conversions will be made.

          Then, use the $ functions while working with strings, for example.

          Comment

          • kadghar
            Recognized Expert Top Contributor
            • Apr 2007
            • 1302

            #6
            Originally posted by mariusseven
            Is that option available in Visual Basic 6.0 or only in newer versions? I have this idea of emptying the memory of the computer after every event, does this help?
            do you mean, by storing the variables in HDD, and then clean the ones in RAM??

            well, sure, it's something you must do when working with huge calculations.

            But with small ones, i dont think it'll optimize your code very much.

            And no, VB6 doesnt have Option Strict, but you can imagine you have it, its just a restriction that wont compile your code, unles you're using the right variable conversion type.

            HTH

            Comment

            • mariusseven
              New Member
              • Mar 2008
              • 19

              #7
              Thanks for the ideas. I'll try what you have suggested.

              Comment

              Working...