i need help... i would like to open the ftp files once they input the id number at text1 any one can help me with this?
Private Sub ReadTemplate_Click()
Dim blob() As Byte
CommonDialog1.Filter = "Fingerprint Template File|*.ftp"
CommonDialog1.InitDir = App.Path & "\SpeaknSmile\fingerprint\"
Open CommonDialog1.FileName = CommonDialog1.InitDir + (Text1.Text + ".ftp") For Binary As #1
ReDim blob(LOF(1))
Get #1, , blob()
Close #1
If Templ Is Nothing Then Set Templ = New DPFPTemplate
Templ.Deserialize blob
End Sub
commondialog VB 6.0I need help in VB
Page 1 of 1
4 Replies - 1463 Views - Last Post: 17 October 2010 - 07:10 PM
Replies To: commondialog VB 6.0
#2
Re: commondialog VB 6.0
Posted 13 October 2010 - 07:37 AM
please post your problem clearly, then only we can help you
#3
Re: commondialog VB 6.0
Posted 14 October 2010 - 01:26 AM
#4
Re: commondialog VB 6.0
Posted 14 October 2010 - 06:56 AM
From what I understand, you want to take the file name provided in the textbox by the user and open the file without using the commondialog.
Well you can directly open the file using the open command
But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:
Hope this help you.
Well you can directly open the file using the open command
Dim variable1 As String Open Text1.text For Input As #1 Input #1, variable1
But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:
Dim variable1 As String dim variable2 as string variable2=App.Path & Text1.text Open variable2 For Input As #1 Input #1, variable1
Hope this help you.
#5
Re: commondialog VB 6.0
Posted 17 October 2010 - 07:10 PM
Somyagupta, on 14 October 2010 - 05:56 AM, said:
From what I understand, you want to take the file name provided in the textbox by the user and open the file without using the commondialog.
Well you can directly open the file using the open command
But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:
Hope this help you.
Well you can directly open the file using the open command
Dim variable1 As String Open Text1.text For Input As #1 Input #1, variable1
But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:
Dim variable1 As String dim variable2 as string variable2=App.Path & Text1.text Open variable2 For Input As #1 Input #1, variable1
Hope this help you.
thank you so much.
i just make some changes and it works fine...
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|