list boxes
-
i have server client program working using one of the tutorials but i would like to be able to save the log that the server produces for everytime a client logs on i have managed to save and load from text boxes using: Dim hFile As Long Dim sFilename As String sFilename = "c:\log.txt" 'obtain the next free file handle from the 'system and and save the text box contents hFile = FreeFile Open sFilename For Output As #hFile Print #hFile, txtReceive.Text Close #hFile but i was wondering if there was a similar way to save all the items in a list box to a log and a way that it could be called back again! any help would be great! .: Lister :.
-
i have server client program working using one of the tutorials but i would like to be able to save the log that the server produces for everytime a client logs on i have managed to save and load from text boxes using: Dim hFile As Long Dim sFilename As String sFilename = "c:\log.txt" 'obtain the next free file handle from the 'system and and save the text box contents hFile = FreeFile Open sFilename For Output As #hFile Print #hFile, txtReceive.Text Close #hFile but i was wondering if there was a similar way to save all the items in a list box to a log and a way that it could be called back again! any help would be great! .: Lister :.
it looks like you are using VB 6.0, you should try using the FileSystemObject Steve
-
it looks like you are using VB 6.0, you should try using the FileSystemObject Steve