Results 1 to 2 of 2

Thread: LocalVariables declaration in a function!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1

    Question

    hi,
    what are the implications of using looooooot's of local
    variables(of type string/long/int) in a function.I will have a component which will have around 50 functions per class & each function will have anywhere between 50-75 local variables.This component will be installed in MTS.
    Is there any potential problems/performance implications b'cos of this??.

    TIA.
    Regds,
    Adi.

  2. #2
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752

    Hi

    You can use as many variables u want. But it's better if u declare the variables that r used in common as global through out the class or as friend.

    Regards
    Faisal
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

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