Results 1 to 7 of 7

Thread: Text File Make Me .....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221

    Angry Text File Make Me .....

    I have to import data from text file to the database.It take a much time to do it complete.I want to make something to interact with user to make user feel the computer does not hang.I try to use Progess Bar to solve this problem.I try to use No.of current position in text file devide by size of the file but I cannot find no.of current position.May anyone help me to solve this problem?

    Thank You,
    Pramoch Keawkarsem
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    set the Min of the progressbar to 0 and the max to 100. Then keep making the value equal to the (current position / total size) * 100. That should work.
    You just proved that sig advertisements work.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221
    But I cannot find the current position that the cursor pointed.
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  4. #4
    New Member
    Join Date
    Nov 2001
    Location
    BANGKOK
    Posts
    14

    Hi. Mr.Pramoch

    sorry, I can't help you :P

    guess me?

  5. #5
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    What do you mean? The cursor as in mouse? of the current read/write position within the file?

    To find the read-write position, use the Loc function.
    You just proved that sig advertisements work.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221
    How?
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  7. #7
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    VB Code:
    1. MsgBox "Current read/write position: " & Loc(1) 'This will return the current read/write position file #1
    You just proved that sig advertisements work.

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