Results 1 to 5 of 5

Thread: Bad text!!! (resolved)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Location
    Portugal
    Posts
    103

    Bad text!!! (resolved)

    Hello everyone, can some one help me whit this?

    I have this kind of text in a text file:

    Fri Feb 1 08:16:00 WET 2002
    8:16am up 248 day(s), 11 hr(s), 0 users, load average: 0.02, 0.03, 0.03
    Fri Feb 1 10:16:00 WET 2002
    10:16am up 248 day(s), 13 hr(s), 1 user, load average: 0.00, 0.00, 0.01
    Fri Feb 1 13:16:01 WET 2002

    When i bring the text to the text box whit this code:

    Do
    i = i + 1
    Input #VarFich, StrOldText
    If i = 1 Then
    StrHeader = StrOldText
    Else
    StrNewText = StrNewText & StrOldText & vbNewLine
    End If
    Loop Until EOF(VarFich)
    FrmPrincipal.Text2.Text = StrNewText & vbCrLf

    what i can return to de text box is something like this:

    8:16am up 248 day(s)
    11 hr(s)
    0 users
    load average: 0.02
    0.03
    0.03
    Fri Feb 1 10:16:00 WET 2002
    10:16am up 248 day(s)
    13 hr(s)
    1 user
    load average: 0.00
    0.00
    0.01

    Can someone explain to me why he does this and do not return the text in the exact way like i have in the text file
    Last edited by benficaman; Sep 25th, 2002 at 10:39 AM.

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