|
-
Nov 20th, 2000, 02:26 PM
#1
Thread Starter
Junior Member
I'm a newbie (though I've created a couple simple apps for my company) and I'm having trouble understanding why one would use "Private" for a sub or anything else. Can somebody help me out?
-
Nov 20th, 2000, 02:43 PM
#2
PowerPoster

Private sub or private variable?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 20th, 2000, 02:46 PM
#3
Thread Starter
Junior Member
I was referring to a procedure, but I'd also like to know why you'd use private variables.
-
Nov 20th, 2000, 02:54 PM
#4
PowerPoster
Well uhh,
Private variable
[code]
Dim intx as integer
Say you are doing a for loop:
[code]
For intx=1 to 100
[code/]
If it was public it would retain the value. In this case, why would you need to know the value (it will be 100 when finished).
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 20th, 2000, 03:06 PM
#5
Addicted Member
As far as procedures go, Private procedures can only be called within their form. If a procedure is Public, you can call it from any form in the whole project.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|