For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > August 2005 > Project names equal to functions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Project names equal to functions
jcasqueiro@netcabo.pt

2005-08-28, 6:55 pm

Hi,

In VB.Net, if I create a project with the same name of a function, I
cannot use that function within the code as it gives me an error
(function is namespace).

Is there a way to circumvent this ?

Thanks/Brgds
Joao

Ralph

2005-08-28, 6:55 pm


<jcasqueiro@netcabo.pt> wrote in message
news:1125234195.395790.326620@g49g2000cwa.googlegroups.com...
> Hi,
>
> In VB.Net, if I create a project with the same name of a function, I
> cannot use that function within the code as it gives me an error
> (function is namespace).
>
> Is there a way to circumvent this ?
>
> Thanks/Brgds
> Joao
>


Try - namespace.namespace()
Or nest your function inside another namespace -
namespace.nestednamespace.namespace()

But why on earth would you ever want to do such an abomination?

Also....

<response type="generic" language="VB.Net">
This newsgroup is for users of Visual Basic version 6.0
and earlier and not the misleadingly named VB.Net
or VB 200x. Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics. Look for newsgroups with the words "dotnet" or
"vsnet" in their name. For the msnews.microsoft.com news
server try these:

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
</response>

-ralph



Bob Butler

2005-08-30, 6:55 pm

<jcasqueiro@netcabo.pt> wrote in message
news:1125234195.395790.326620@g49g2000cwa.googlegroups.com
> Hi,
>
> In VB.Net,



--
<response type="generic" language="VB.Net">
This newsgroup is for users of Visual Basic version 6.0
and earlier and not the misleadingly named VB.Net
or VB 200x. Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics. Look for newsgroups with the words "dotnet" or
"vsnet" in their name. For the msnews.microsoft.com news
server try these:

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb

</response>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com