Click here to Skip to main content
15,902,112 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Redirecting by IP Pin
Dave Kreskowiak29-Aug-05 9:56
mveDave Kreskowiak29-Aug-05 9:56 
QuestionChoice which database to be display from Report Pin
vincentkhoosiongleng28-Aug-05 21:31
vincentkhoosiongleng28-Aug-05 21:31 
QuestionSendKeys Pin
hung_ngole28-Aug-05 21:29
hung_ngole28-Aug-05 21:29 
AnswerRe: SendKeys Pin
Dave Kreskowiak29-Aug-05 1:07
mveDave Kreskowiak29-Aug-05 1:07 
QuestionSet Folder Permisssion for windows Pin
zerokill28-Aug-05 21:09
zerokill28-Aug-05 21:09 
AnswerRe: Set Folder Permisssion for windows Pin
Dave Kreskowiak29-Aug-05 1:02
mveDave Kreskowiak29-Aug-05 1:02 
GeneralRe: Set Folder Permisssion for windows Pin
zerokill29-Aug-05 20:33
zerokill29-Aug-05 20:33 
QuestionSave to file with variable name Pin
GZA28-Aug-05 20:14
GZA28-Aug-05 20:14 
Hi, i need to save to a text file with a variable name. This is what i have at them moment. It saves to mood.txt in the same directory as the project.

FileNum4 = FreeFile<br />
' Create mood.txt<br />
Open appPath & "mood.txt" For Append As #FileNum4<br />
' Write the contents of TextBox1 to mood.txt<br />
Print #FileNum4, mood; " , "; lblTime; " , "; songTitle<br />
' Close the file<br />
Close FileNum4


What i want tho, is for the filename to be "songTitle" mood.txt where songTitle is a varible As String. Ive tried this:

Open appPath & songTitle & " mood.txt" For Append As #FileNum4

But i get a bad file name error when i try to save to the file. Im sure there must be a way to do this, i just cant figure it out. How is it done?

Thanks
Gizza

-- modified at 2:14 Monday 29th August, 2005
AnswerRe: Save to file with variable name Pin
Dave Kreskowiak29-Aug-05 1:05
mveDave Kreskowiak29-Aug-05 1:05 
GeneralRe: Save to file with variable name Pin
GZA29-Aug-05 2:50
GZA29-Aug-05 2:50 
QuestionHow can I write a program about Call Logs?? Pin
sp04.tw28-Aug-05 16:58
sp04.tw28-Aug-05 16:58 
AnswerRe: How can I write a program about Call Logs?? Pin
Christian Graus28-Aug-05 17:17
protectorChristian Graus28-Aug-05 17:17 
GeneralRe: How can I write a program about Call Logs?? Pin
sp04.tw28-Aug-05 18:15
sp04.tw28-Aug-05 18:15 
QuestionData grid Pin
Uberto28-Aug-05 4:56
Uberto28-Aug-05 4:56 
AnswerRe: Data grid Pin
Dave Kreskowiak28-Aug-05 5:03
mveDave Kreskowiak28-Aug-05 5:03 
Questionbinding a DataGrid Pin
microuser_200028-Aug-05 0:02
microuser_200028-Aug-05 0:02 
AnswerRe: binding a DataGrid Pin
Dave Kreskowiak28-Aug-05 3:20
mveDave Kreskowiak28-Aug-05 3:20 
GeneralRe: binding a DataGrid Pin
Oakman28-Aug-05 21:12
Oakman28-Aug-05 21:12 
QuestionArray of classes within a Class Pin
bonio5527-Aug-05 13:38
bonio5527-Aug-05 13:38 
AnswerRe: Array of classes within a Class Pin
bonio5527-Aug-05 15:40
bonio5527-Aug-05 15:40 
QuestionHow can I connect WebCam to my Application Pin
deepak_rai27-Aug-05 6:29
deepak_rai27-Aug-05 6:29 
AnswerRe: How can I connect WebCam to my Application Pin
bonio5527-Aug-05 14:03
bonio5527-Aug-05 14:03 
QuestionPass image as argument in vb.net to Matlab dll Pin
sscome27-Aug-05 0:09
sscome27-Aug-05 0:09 
QuestionUsing dual processor machine for vb.net apps Pin
msali26-Aug-05 23:43
msali26-Aug-05 23:43 
AnswerRe: Using dual processor machine for vb.net apps Pin
Dave Kreskowiak27-Aug-05 6:02
mveDave Kreskowiak27-Aug-05 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.