CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: DIM vs. PRIVATE

  1. #1
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    DIM vs. PRIVATE

    Is there any difference in performance by using the DIM statement to declare variables in a
    Procedure instead of the PRIVATE statement?
    Do the two statements use the same amount of memory or is one more efficent than the other?
    Thanks for your input!!!

    Kris
    Software Engineer
    Phoenix, AZ USA

  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: DIM vs. PRIVATE

    Ther is no difference in speed. The only difference is that they might have different scope

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured