By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,674 Members | 1,478 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,674 IT Pros & Developers. It's quick & easy.

VB.NET Library/API

P: n/a
Hello,

I am a Java programmer and I am used to finding out what functions are
written out for me in the Java API provided by Sun on their website.

Now for VB.NET is there a similar online resource? That tells me which
function is in what library, and what its purpose is?

For instance, I have been trying to figure out what this statement does:

ValidateMDBExistence = Dir(Application.StartupPath & "xyz.mdb")

I have an idea, it is trying to find out the startup path of the application
and looking for xyz.mdb in that folder. But for some reason I'm not getting
what I want. So, can you please point me to the API/library resource online
for VB.Net?

Thanks.

Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
CS Tutor wrote:
Hello,

I am a Java programmer and I am used to finding out what functions are
written out for me in the Java API provided by Sun on their website.

Now for VB.NET is there a similar online resource? That tells me which
function is in what library, and what its purpose is?

For instance, I have been trying to figure out what this statement does:

ValidateMDBExistence = Dir(Application.StartupPath & "xyz.mdb")

I have an idea, it is trying to find out the startup path of the application
and looking for xyz.mdb in that folder. But for some reason I'm not getting
what I want. So, can you please point me to the API/library resource online
for VB.Net?


Application.StartupPath returns the folder in which the application is
started from. The Dir function returns file(s) that match the passed in
criteria. The entire line is geared towards finding out whether xyz.mdb
exists in the same folder as the running executable.

So essentially, the next line should be:

if Len(ValidateMDBExistence ) > 0 then
MessageBox.Show ("File exists")
else
MessageBox.Show ("File does not exist")
end if

As far as documentation... Simply go to MSDN, then click on the Library
link. The dig into the tree on the left hand side: .Net
development/visual studio .net/product documentation/... You get the idea.

Here is the docs on DIR

http://msdn.microsoft.com/library/de...l/vafctdir.asp

Nov 20 '05 #2

P: n/a
"CS Tutor" <uo**********@yahoo.com> scripsit:
I am a Java programmer and I am used to finding out what functions are
written out for me in the Java API provided by Sun on their website.

Now for VB.NET is there a similar online resource? That tells me which
function is in what library, and what its purpose is?

For instance, I have been trying to figure out what this statement does:

ValidateMDBExistence = Dir(Application.StartupPath & "xyz.mdb")

I have an idea, it is trying to find out the startup path of the application
and looking for xyz.mdb in that folder. But for some reason I'm not getting
what I want. So, can you please point me to the API/library resource online
for VB.Net?


<http://msdn.microsoft.com/library/en-us/netstart/html/cpframeworkref_start.asp>
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netstart/html/cpframeworkref_start.asp>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.