Results 1 to 3 of 3

Thread: Buffer flush

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    7

    Buffer flush

    What code do i use so that when the exe program is terminated, it flushes its buffer?

    The program receives information and then displayes it in an XML file. When the program is terminated, it does not display the information it has stored, how do i make it so that it takes all the information it has stored and displays it in the XML file?

    Thanks in advance.

  2. #2
    Member
    Join Date
    Oct 2004
    Posts
    43
    If I understood it right you want to save it as a .xml so it can be viewed after your application has been terminated.

    Open "/public.xml" for output as #1
    Write #1, DataTablet

    Then you can always make a loop and such. Still I am not sure if understood it right.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    7
    Hi, I'm not sure if i understand either

    Here is a piece of code that i have:

    If iFileEventCount >= iFileMaxEvents Then

    oDom.save(TARGETPATH & TARGETFILE & VB6.Format(Now, "ddmmyyyy-hhmmss") & ".xml")

    oDom = Nothing
    oDom = CreateMHubDOM

    End If

    I just need it to create a last .xml file when the program is terminated with any events it has stored.

    I hope this makes sense

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