Re: ListViews In Reverse

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hehe...Are you saying that I'm being frivolous here?  I'm beginning to think
that entering the info backward is the only solution, but it seems to me
that this is something that I should be able to do.  I want to make this
program as simple and user-friendly as possible (OK, OK...that is part of
the reason, but the main reason is that it seems like such a simple thing,
but I haven't been able to figure it out, and it's driving me crazy!).
Seriously, is this something that just can't be done in a ListView?

Virtual B
----- Original Message -----
From: <euman at bellsouth.net>
Subject: Re: ListViews In Reverse


>
>
> Sure, feed your info in backwards.....:)
>
> Euman
> euman at bellsouth.net
>
>
>
> ----- Original Message -----
> From: "Virtual B" <behaviorself at netzero.net>
> To: "EUforum" <EUforum at topica.com>
> Sent: Friday, July 27, 2001 10:26
> Subject: ListViews In Reverse
>
>
> >
> >
> > Hi everyone,
> >
> > I was wondering if anyone knew a way to make a ListView add each new
> > line to the bottom instead of putting each new item at the top (or
> > possibly to keep things in numerical order according to what is in the
> > first column...?).  I'm working on a payroll program for our contractors
> > here, and we enter the information right off their paysheets, but it is
> > displayed in reverse order in the program.  I ended up rearranging
> > things myself, and it works pretty well...unless you delete something
> > and add another entry.  Here is the code I used to display the data
> > properly:
> >
> > count = getCount(ListView28)
> > lv3 = {}
> > lv3 = repeat(0, count)
> > lParams = repeat(0, count + 1)
> > for i = 1 to count do
> >     lv3[i] = getItem(ListView28, i)
> > end for
> > eraseItems(ListView28)
> > lParams[1] = addLVItem(ListView28, closefolder, lv1[1..4])
> > for j = 1 to count do--count to 1 by -1 do
> >   if length(lv3[j]) > 0 then     --need this to keep from crashing
> >     lParams[j + 1] = addLVItem(ListView28, closefolder, lv3 [j].4])
> >   else
> >     junk = message_box("Omitting item ",
> >     "Info", MB_ICONINFORMATION + MB_TASKMODAL)
> >   end if
> > end for
> >
> > The "if length(lv3[j]) > 0 then" statement keeps the program from
> > crashing, but it also deletes the entry at the top of the ListView.  Any
> > ideas?
> >
> > Thanks,
> >
> > Virtual B
> >
> >
> >
> >
> >
>
>
>
>
>
>
>


NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu