|
-
October 18th, 2001, 08:13 PM
#1
help
i want to know what is the different between private and public function or procedure?
-
October 18th, 2001, 11:37 PM
#2
Re: help
Private or Public is the scope
If u define a variable or Procedure or Function as private (or Dim in some cases of Variables), u can access that only within the scope u declared.
Eg. If u declare a function in a form as private u can access that within that form only.
If u define the same as public in a Form, u can use that with the form name eg: x = Form1.MyFunc() ' where MyFunc is a Function defined with a Public scope
This is same for Modules
If u r worried about Func & Procedure, The difference is Function is supposed to return a value and a procedure (Sub Routine) is to do a task only
Srinika
If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it 
-
October 19th, 2001, 12:02 AM
#3
-
October 19th, 2001, 12:09 AM
#4
Re: help
if u r satisfied with the ans Rate the answer
If u want anything to be clarified --> ask!!
Srinika
If u don't know how to Rate an answer, then Rate my answer to learn, If u know, then practice it 
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
|