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.
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?
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
Summary: hi... when i open my yahoo.com or the iexplore theres a massage from content advisor to write my password and i've forgot it so pleace help me i'm stuck.... whith my best regards to you..... ...
Summary: Hi, I've generated a program that outputs a series of nodes eg, {A, F, L, Z). This corresponds to the recommended route along a certain path. i.e. starting at A go to F then L and arrived at destinati...
Summary: Hi! I'm new to programming and working for the first time with arrays. While I'm doing fine reading one array from a file, I'm having a problem with reading several. I have my program partially writte...