[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-user
Subject: Re: [Gambas-user] read a file into a listview - but backwards
From: Stefano Palmeri <rospolosco () tiscali ! it>
Date: 2009-04-30 21:59:43
Message-ID: 200904302359.43898.rospolosco () tiscali ! it
[Download RAW message or body]
Il giovedì 30 aprile 2009 19:46:25 Joshua Higgins ha scritto:
> Hi all,
>
> Is it possible to read a file and load it line by line into a listview, but
> backwards? I have been using the example from gambasdoc for loading files
> line by line, but I'm writing a logging page and want to show newest items
> first.
>
> Thanks.
Or you can using the magic of shell:
Dim sReverseFile as String
SHELL "tac " & PathToFile TO sReverseFile
then load sReverseFile. If file is big consider
creating a temporary file for redirecting 'tac' to.
Saluti,
Stefano
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic