Announcement

Collapse
No announcement yet.

SHELL SORT RETURNS SCR GARBLED

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • andre drabs
    replied
    Hi,

    Concerning sorts... there are some good sorting routines in PB...
    I modified a sorting routine to sort files on disk, so that little
    memory is not longuer a problem ... Why not give it a try ???
    If interested in the disk-version, send me an email and i will
    mail it to you..

    [email protected]


    ------------------
    NEVER code TODAY what you DID NOT code YESTERDAY ...

    Leave a comment:


  • Paul Purvis
    replied
    hi,
    if you sort as many files as i do, there is also a program you must try.
    it is call rpsort. i have version 1.03. i can really say this program is
    nothing but awesome. it sorts very very large files and fast.
    did i say fast and no problems so far. i wish somebody had told me about
    this product years ago. it is free. the author died some years ago and
    his brother put the program in public domain, even the source can be had.
    ROBERT PIRKO was the author and he deserves large caps for the reason.
    of a job well done and i wanted to honor his efforts here.
    paul purvis

    the program can be found on the internet by doing a search.
    good luck



    ------------------

    Leave a comment:


  • Mel Bishop
    replied
    Originally posted by Tom Hanlin:
    ...write your own sort routine?
    Tom H, I think he's shelling out to the SORT.EXE included with
    windows.

    Tom B: Have you checked out ARRAY SORT in PB? That's a fast
    little bugger and you won't have to shell out to get it.


    ------------------

    Leave a comment:


  • Tom Hanlin
    replied
    Hmm. Save the screen first? Or write your own sort routine?

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Tom Birch
    replied
    Yes, there is a reason. Just not worth explaining all the
    background behind it.

    It is just code to recreate the problem I am having.
    I am converting from an old Visual Basic for DOS program.

    The display works fine before the SHELL.

    After the return from the SHELL the screen becomes unreadable.
    Looks like the screen is displaying the graphics in text mode

    The while statements are there just to display the results
    of the problem.

    The following seems to fix the problem,
    but unfortuneately clears the screen.

    Screen 0
    Shell "SORT /+13 <CUST.DAT >CSRT.DAT"
    Screen 11


    [This message has been edited by Tom Birch (edited April 20, 2004).]

    Leave a comment:


  • Tom Hanlin
    replied
    What do you mean, "the screen comes back garbled"?

    Is there a reason for switching to SCREEN 11? That's a VGA graphics
    mode, and it doesn't look like you have any need for graphics. Maybe
    your video adapter doesn't handle VGA graphics modes properly?

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Tom Birch
    started a topic SHELL SORT RETURNS SCR GARBLED

    SHELL SORT RETURNS SCR GARBLED

    When I Run

    SCREEN 11
    CLS
    PRINT "PLEASE WAIT"
    K$ = ""
    WHILE K$ = ""
    K$ = INKEY$
    WEND
    LOCATE 16, 1 : Shell "SORT /+13 <CUST.DAT >CSRT.DAT"
    PRINT "COMPLETED"
    K$ = ""
    WHILE K$ = ""
    K$ = INKEY$
    WEND

    .
    THE SCREEN COMES BACK GARBLED. I AM USING WINDOWS XP.



    ------------------
Working...
X