Computing.Net > Forums > Programming > My first VB project, and I'm stuck.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

My first VB project, and I'm stuck.

Reply to Message Icon

Name: TobyR
Date: July 17, 2002 at 09:36:57 Pacific
Comment:

Hi, I'm working on a Windows Send-To Extension, and I need to be able to get a filesname and path if it's sent to my program, how would I do that?

Thanks for your help.



Sponsored Link
Ads by Google

Response Number 1
Name: TobyR
Date: July 17, 2002 at 13:04:10 Pacific
Reply:

I'm also trying to perform this action:

For SearchNo = 0 To 10000
If FileInfo(SearchNo) = "" Then FileInfo(SearchNo) = TotalFileToMove
Reference = SearchNo
Next SearchNo
lbxFILESMOVE.AddItem FileInfo(Reference)

But for some reason nothing prints to the listbox, just a blank entry, I think I'm using the Liberty BASIC way of setting array contents rather than the VB way, but I'm pretty sure it's the same?


0

Response Number 2
Name: Burbble
Date: July 18, 2002 at 17:27:59 Pacific
Reply:

For the first thing, put this into a module, and set the project's Starting Object to Sub Main:

Sub Main()
Dim SentPath As String
SentPath = Left(Command, len(Command) - Len(App.Path)
End Sub


For the second problem, the reason that is happening is because the list box code is outside of the For/Next. It should be like this:

For SearchNo = 0 To 10000
If FileInfo(SearchNo) = "" Then FileInfo(SearchNo) = TotalFileToMove
Reference = SearchNo
lbxFILESMOVE.AddItem FileInfo(Reference)
Next SearchNo

-Burbble


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


insert statement in VB Horrible HTML Frames Prob...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: My first VB project, and I'm stuck.

PHP - Please help me cause I'm stucked www.computing.net/answers/programming/php-please-help-me-cause-im-stucked/319.html

I'm stuck - Please Help! www.computing.net/answers/programming/im-stuck-please-help/9310.html

New to C++ - Homework Help www.computing.net/answers/programming/new-to-c-homework-help/16385.html