BASIC/Visual Basic >> Useful vb Code
Posted by meistersix on 15:41:00 09-06-2002
Hello!!!

In this folder i will post some usefull code snippets over time. I would be grateful if others could contribute as well!!!!
Posted by meistersix on 15:43:00 09-06-2002
Here is a simple error logger for use with your programs. It records the time, error number and description in a log file.

Code:

On Error GoTo ErrorLog
'All your code here
Exit Sub
ErrorLog:
Open "C:Error.txt" For Append As #1
Print #1, Time & " " & Err.Number & "-" & Err.Description
Close #1

Posted by sacah on 20:49:00 09-06-2002
why not post your code to This
section
(-;

Very nice to meet you, and its good to have some new blood in the VB section, welcome to YPN.

[ This Message was edited by: sacah on 2002-09-06 20:59 ]