| | |
Help with Browse
![]() |
•
•
Join Date: Oct 2004
Posts: 5
Reputation:
Solved Threads: 0
I download a program located at ftp://ftp.softcircuits.com/vbsrc/browse.zip and being a newbie, i failed to make the code work. i mean to make my code work with yoursit... the code is given below:
Private Sub Command1_Click()
Dim myfile
Dim i As Integer
For i = 1 To 999
myfile = Dir("C:\" & i & ".bmp")
If Not myfile = i & ".bmp" Then
fSaveGuiToFile ("C:\" & i & ".bmp")
Exit For
End If
Next i
End SubI would like the user to choose the path like the one at ftp://ftp.softcircuits.com/vbsrc/browse.zip but failed to integrate this code of mine to work with it... could you please help me out. thanx
Private Sub Command1_Click()
Dim myfile
Dim i As Integer
For i = 1 To 999
myfile = Dir("C:\" & i & ".bmp")
If Not myfile = i & ".bmp" Then
fSaveGuiToFile ("C:\" & i & ".bmp")
Exit For
End If
Next i
End SubI would like the user to choose the path like the one at ftp://ftp.softcircuits.com/vbsrc/browse.zip but failed to integrate this code of mine to work with it... could you please help me out. thanx
fSaveGuiToFile
This function is not defined in the code anywhere.
By the way suRoot
If Not myfile = i & ".bmp" Then
is perfectly legitimate code. It's saying if filename myfile is not equal to i & ".bmp".
This function is not defined in the code anywhere.
By the way suRoot
If Not myfile = i & ".bmp" Then
is perfectly legitimate code. It's saying if filename myfile is not equal to i & ".bmp".
Mark Nemtsas
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
•
•
Join Date: Oct 2004
Posts: 5
Reputation:
Solved Threads: 0
the code available for download is actually a script which allows user to choose the file location and shows the location in a text box! and my script which i posted is actually a part of my code which saves to C:\ when "command1" is pressed.
I would like to make it in such a way that it saves to the location specified by the user and not to C:\ which cannot be changed by the user! hope u understand.
thanx! hope to get the help from u again.
I would like to make it in such a way that it saves to the location specified by the user and not to C:\ which cannot be changed by the user! hope u understand.
thanx! hope to get the help from u again.
not thought about using a common dialog control? aka CMDIALOG. If you want the user to specify something what about the inputbox function ie
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim response response = InputBox("Enter filename")
http://sales.carina-e.com
no www
no nonsense
coming soon to a pc near you! :cool:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Similar Threads
- cannot browse from internet explorer but can browse from windows explorer (Web Browsers)
- can not browse using url's only ip's work (Viruses, Spyware and other Nasties)
- Modem Connected But unable to Browse (Web Browsers)
- Internet Explorer would not browse properly (Web Browsers)
- Micr Adjustment And Loading Files Using The Browse Key (VB.NET)
- XP Can not browse workgroup (Networking Hardware Configuration)
- I can't browse with internet explorer (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: how to select folder using commondialog in visual basic
- Next Thread: request for ansi sql queries equalent to MS access
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





