VB.NET Library/API

C

CS Tutor

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.
 
F

Frank Rizzo

CS said:
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/default.asp?url=/library/en-us/vblr7/html/vafctdir.asp
 
H

Herfried K. Wagner [MVP]

CS Tutor said:
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/d.../en-us/netstart/html/cpframeworkref_start.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top