Ask a Question related to ASP.NET General, Design and Development.
-
May #1
Public Shared
greetings, i came across a function while browsing thru
the net. This function is created in a component. what i
am curious to know is, is this the correct way to create a
function using:
Public Shared Function name() As String
Don't we need some sort of parameter passing to use
the "As String"? Maybe something like this:
Public Shared Function name(ByVal fname As String)
i am also curious as to why we need to use "Public Shared"
and not just the keyword "Shared" alone. what is the
difference between these two? thanx!
May Guest
-
Shared Memory/Shared Buffers
I have noticed that I can't set the shared buffers above 15512 which is exactly 128MB of RAM. Even if I set /proc/sys/kernel/shmmax above that,... -
About to go public - critcism please
http://www.collierknightwatts.com Please try to break it. Please try to find glitches. Please let me know if you find any holes. Lastly - the... -
Public Constants
Hi, what is a good way to implement public common constants. like what we do in a common header file in C++. jeff -
how to have a gpg public key?
How can i have a gpg public key? -- Thank you, Louie Miranda (louie@axishift.ath.cx) -- To UNSUBSCRIBE, email to... -
Can I have local Shared Documents folder *NOT* shared on the Local Network
I finally have my local network working well enough (Thanks Steve W.!). I think I have learned that "network connection" does not get you anything... -
May #2
Re: Public Shared
sorry, but i still can get wat's the difference
between "Sharing" and "Public". I've tried out both ways
in creating a function in a component and i can still
reference the component from various different web
applications. So wat's the deal with shared and public?
of the object can>-----Original Message----->the function returns a string...>> Public Shared Function name() As String
>so you call name like thing
>
>Dim myNamePlease As String = name()
>
>>>> Public Shared Function name(ByVal fname As String)
>Public means anyone on the outside that has an instansecalled if you have>access it.
>Shared, (more like Static), means that the same member isautomatic attribute>two objects both calling one member.
>
>it could have just been Shared in this case because thecreate a>is Public, unless Private or Protected is specified...
>
>Think that's right!
>
>
>
>"May" <marianne_too@hotmail.com> wrote in message
>news:00ba01c34629$02e177c0$a101280a@phx.gbl...>> greetings, i came across a function while browsing thru
>> the net. This function is created in a component. what i
>> am curious to know is, is this the correct way toShared">> function using:
>> Public Shared Function name() As String
>> Don't we need some sort of parameter passing to use
>> the "As String"? Maybe something like this:
>> Public Shared Function name(ByVal fname As String)
>>
>> i am also curious as to why we need to use "Public>>> and not just the keyword "Shared" alone. what is the
>> difference between these two? thanx!
>
>.
>May Guest



Reply With Quote

