Results 1 to 13 of 13

Thread: anyone can examine with my code..

Hybrid View

  1. #1
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: anyone can examine with my code..

    Use some

    Open statement together with Print and Close and Input Line statements which ever you prefer... if you don't want to use that command that is.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2002
    Location
    Philippines
    Posts
    877

    Re: anyone can examine with my code..

    @oceanebelle

    do u have an example for that?

    Thanks...


  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: anyone can examine with my code..

    Is this thread related with this thread?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: anyone can examine with my code..

    Quote Originally Posted by nokmaster
    @oceanebelle

    do u have an example for that?

    Thanks...

    Sorry missed your messages on yahoo. I'm only online for like 7-8 hours a day.. and that is IF I'm not busy so.

    but here's a sample code. Now you've got to work out the details if you want to use this though.

    VB Code:
    1. Sub LogMessage(ByVal psMsg As String)
    2.    
    3.     Dim lngFileNum As Long
    4.    
    5.     lngFileNum = FreeFile()
    6.     If LogFile = "" Then
    7.         Open App.Path & "\" & App.EXEName & ".log" For Append As #lngFileNum
    8.     Else
    9.         Open LogFile For Append As #lngFileNum
    10.     End If
    11.     Print #lngFileNum, Format$(Date$, "YYYY/MM/DD"), Format$(Time$, "HH:MM:SS"), psMsg & vbNullChar
    12.     Close #lngFileNum
    13.    
    14. End Sub

    LogFile is either created on the current directory or in the directory specified by the user....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width