Interesting question. I'll have to givethis one some thought.
Technically if you use an include like above, then the files are merged at runtime so the outside script has access to the private subs of the included script, and vice-versa.
The other way to do this would be to use the Server.Execute to execute a file... but this would execute the file independantly, ie the original file wouldn't have any access to the executed file anyways.
I guess the public would only make sense if you were creating classes and objects:
Code:
Class MyObject
Dim a 'a is accesible only to me
Public b 'b is accessible to the world
End Class
I used variables as ana example but is the same with functions, subs, etc.
So basically unless you are creating custom classes/objects than the Public scope is unnecessary.
-Tarwn
As a sidenote: mdiaz, why do you say an include file will naturally have a .inc extension?
________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924