|
-
Jun 12th, 2005, 12:18 AM
#1
Thread Starter
Fanatic Member
How to make a file using a input box?
Hi, all
I need hlep makeing a file using a input box?
Exp you Enter Your name as bob the file will be bob.pos
Last edited by bob5731; Jun 12th, 2005 at 01:39 AM.
P.S. God Love You And Have A Good Day!!! My web page
I need to get a free Iphone
-
Jun 12th, 2005, 12:36 AM
#2
Re: How to make a file using a input box?
this is exactly what you asked for:
VB Code:
Private Sub Form_Load()
Dim inpStr As String
Dim ff As String
inpStr = InputBox("Name")
ff = FreeFile
Open App.Path & "\" & inpStr & ".pos" For Output As #ff
Print #ff, inpStr
Close #ff
End Sub
-
Jun 12th, 2005, 12:37 AM
#3
Frenzied Member
Re: How to make a file using a input box?
*Edit* Beat me to it. Mine was missing a part anways. I forgot to have the "\" to it.
-
Jun 12th, 2005, 01:06 AM
#4
Thread Starter
Fanatic Member
Re: How to make a file using a input box?
a inputbox will not work it need to be text box.
Last edited by bob5731; Jun 12th, 2005 at 01:09 AM.
P.S. God Love You And Have A Good Day!!! My web page
I need to get a free Iphone
-
Jun 12th, 2005, 01:27 AM
#5
Re: How to make a file using a input box?
same idea..
Private Sub Form_Load()
Dim ff As String
ff = FreeFile
Open App.Path & "\" & text1.text & ".pos" For Output As #ff
Print #ff, text1.text
Close #ff
End Sub
-
Jun 12th, 2005, 01:29 AM
#6
Re: How to make a file using a input box?
What good is the contents being the same as the name. You have to explain what you are trying to do if you want help. What is going to be IN the file.
-
Aug 26th, 2005, 10:57 PM
#7
Frenzied Member
Re: How to make a file using a input box?
by the way, inputbox takes an and not a
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|