|
-
Nov 15th, 2005, 08:02 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Invisible sub routine in module??
i am creating a module that allows me to search a database.
Within the module i need a sub routine that the module calls, but is invisible to the user when he calls the module.
If i made the sub routine private, it would be invisible to the user but the module couldn't call it either, could it??
Please say if you don't understand!!
Cheers
GTJ
-
Nov 15th, 2005, 08:12 AM
#2
Re: Invisible sub routine in module??
 Originally Posted by greythej
Please say if you don't understand!!
Cheers
GTJ
Ok. I don't understand.
If you compile the program, which I assume you would be doing, then everything within it would not be accessable to anyone that did not have the source code. If someone did have the source code, then everything would be accessable.
Also, if you put a Private Sub in module it would be accessable from nowhere in the project.
-
Nov 15th, 2005, 08:22 AM
#3
Re: Invisible sub routine in module??
 Originally Posted by greythej
Within the module i need a sub routine that the module calls, but is invisible to the user when he calls the module.
If i made the sub routine private, it would be invisible to the user but the module couldn't call it either, could it??
If that was true, making routines Private would be a bit pointless eh? 
Private methods can be called from within the module they are located, but not from outside that module.
-
Nov 15th, 2005, 08:24 AM
#4
Re: Invisible sub routine in module??
I think he means:
VB Code:
Private Sub BlaBla()
End Sub
or:
VB Code:
Public Sub BlaBla()
End Sub
-
Nov 15th, 2005, 08:35 AM
#5
Re: Invisible sub routine in module??
If i made the sub routine private, it would be invisible to the user but the module couldn't call it either, could it??
In the module you can call a private sub. It is invisible outside the module.
-
Nov 15th, 2005, 08:39 AM
#6
Re: Invisible sub routine in module??
 Originally Posted by namrekka
In the module you can call a private sub. It is invisible outside the module.
Thank you for clarifying and reiterating my answer.
-
Nov 15th, 2005, 08:43 AM
#7
Re: Invisible sub routine in module??
I'm sorry. We where posting at nearly at the same time. I mis read your post there for.
-
Nov 15th, 2005, 08:45 AM
#8
Re: Invisible sub routine in module??
In that case, no worries
-
Nov 15th, 2005, 08:59 AM
#9
Fanatic Member
Re: Invisible sub routine in module??
What's all this "invisible" nonsense? That has to be the worst way of describing scope I've ever heard.
-
Nov 15th, 2005, 09:08 AM
#10
Re: Invisible sub routine in module??
Enough chit chat and if someone does not understand the scope of the question, please be polite and respectful when asking for clarification.
-
Nov 15th, 2005, 09:20 AM
#11
Thread Starter
Hyperactive Member
Re: Invisible sub routine in module??
cheers everyone except Nove. No need to go so mental, i just didn't know that word...
GTJ
-
Nov 15th, 2005, 09:31 AM
#12
Re: Invisible sub routine in module??
 Originally Posted by Nove
What's all this "invisible" nonsense? That has to be the worst way of describing scope I've ever heard.
I don't agree with that at all. A private scope is often described as:
not being visible to the outside world
To me "not visible" and "invisible" is the exact same thing.
-
Nov 15th, 2005, 09:32 AM
#13
Thread Starter
Hyperactive Member
Re: [RESOLVED] Invisible sub routine in module??
good man Joacim Andersson...
-
Nov 16th, 2005, 08:10 AM
#14
Fanatic Member
Re: [RESOLVED] Invisible sub routine in module??
Oh, sorry, I didn't mean it to be taken as an insult.
I was a little hung up on thinking about how a function would be visible, I understand that you might call certain variables invisible (as you can't identify their value), but I don't think that really stands with functions or subroutines, as all you really do is call them, right?
-
Nov 16th, 2005, 10:09 AM
#15
Thread Starter
Hyperactive Member
Re: [RESOLVED] Invisible sub routine in module??
yer, but ion this case i meant the sub routine needs to be invisible to the programmer calling the module...
-
Nov 16th, 2005, 10:11 AM
#16
Re: [RESOLVED] Invisible sub routine in module??
So you want to hide the code in the development environment (Visual Basic)
I code C#....

-
Nov 16th, 2005, 10:15 AM
#17
Thread Starter
Hyperactive Member
Re: [RESOLVED] Invisible sub routine in module??
no, don't worry... but out of interest, is that possible???
-
Nov 16th, 2005, 10:19 AM
#18
Re: [RESOLVED] Invisible sub routine in module??
 Originally Posted by greythej
no, don't worry... but out of interest, is that possible???
No, you aren't going to hide code from a programmer that has full access to the source.
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
|