1. RE: How do you populate a ListView?

should be 
count = addLVItem(myLV, 0, {db_key,db_data})
You can replace the 0 with the id for an icon returned whith addIcon 
command

ronaustin at alltel.net wrote:
> I am trying to display the contents of a database using listview. I am
> looping through the database to populate the list box using this little
> snippette: 
> 
> count = addLVItem(myLV,1,db_key) 
> count = addLVItem(myLV,2,db_data) 
> Instead of getting the key in column1 and the data in column2 it is 
> putting
> the the first key in column one with it's data under it and then it puts 
> the
> second key in the first column with it's data under that. Nothing is 
> going
> into column 2. What am I doing wrong? 



Give your hardest tasks to your lasiest workers. 
They will always find the easiest way to complete it.

new topic     » topic index » view message » categorize

2. RE: How do you populate a ListView?

--------------Boundary-00=_PNQWO2Q1VA4000000000
  charset="iso-8859-1"

=0D
 =0D
-------Original Message-------=0D
 =0D
From: EUforum at topica.com=0D
Subject: RE: How do you populate a ListView?=0D
 =0D
=0D
=0D
should be =0D
count =3D addLVItem(myLV, 0, {db_key,db_data})=0D
You can replace the 0 with the id for an icon returned whith addIcon =0D
command=0D
=0D
Thanks.  That's better.  It is displaying two columns, except the columns=
 are not the right width and there is a third column with nothing in it. =
 I think I can set the column width with LVCOLUMN, but I just can't figur=
e it out, and I don't now how to get rid of the 3rd column.  I can't find=
 an example.
--------------Boundary-00=_PNQWO2Q1VA4000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
 10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes ORGYPOS=3D"0" X-FVER=3D"3.0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV><BR>&nbsp;</DIV>
<DIV id=3DIncrediOriginalMessage><I>-------Original Message-------</I></D=
IV>
<DIV>&nbsp;</DIV>
<DIV id=3Dreceivestrings>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m=
ailto:EUforum at topica.com">EUforum at topica.com</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> Friday, Octo=
ber 17, 2003 4:30:21 AM</DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai=
lto:EUforum at topica.com">EUforum</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> RE: How d=
o you populate a ListView?</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Euphoria Mailing List =3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <BR><BR><BR>should be <BR>count =3D addLVI=
tem(myLV, 0, {db_key,db_data})<BR>You can replace the 0 with the id for a=
n icon returned whith addIcon <BR>command</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.&nbsp; That's better.&nbsp; It is displaying two columns, exc=
ept the columns are not the right width and there is a third column with =
nothing in it.&nbsp; I think I can set&nbsp;the column width&nbsp;with LV=
COLUMN, but I just can't figure it out, and I don't now how to get rid of=
 the 3rd column.&nbsp; I can't find an example.<BR></DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
--------------Boundary-00=_PNQWO2Q1VA4000000000--

new topic     » goto parent     » topic index » view message » categorize

3. RE: How do you populate a ListView?

--------------Boundary-00=_S0RWENY1VA4000000000
  charset="iso-8859-1"

=0D
 =0D
-------Original Message-------=0D
 =0D
From: EUforum at topica.com=0D
Subject: RE: How do you populate a ListView?=0D
 =0D
=0D
=0D
should be =0D
count =3D addLVItem(myLV, 0, {db_key,db_data})=0D
You can replace the 0 with the id for an icon returned whith addIcon =0D
command=0D
=0D
I got the ListView displaying my data, thanks to Tony, but how do I get r=
id
of the thing?=0D
=0D
I set up a procedure so that when I click on the "Print to Screen" menu i=
tem
it pops up the ListView showing the contents of the database, but how do =
I
get rid of the thing and make it go away?  I originally hid it with
SetVisible.  There is no close button to click to make it invisible again=
=2E=0D
=0D
Also, if I click on one of the items in the ListView I'd like to be able =
to
retrieve the whole record and display it.  Is this doable?=0D
=0D
ronaustin at alltel.net wrote:=0D
> I am trying to display the contents of a database using listview.
--------------Boundary-00=_S0RWENY1VA4000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
 10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes ORGYPOS=3D"0" X-FVER=3D"3.0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV><BR>&nbsp;</DIV>
<DIV id=3DIncrediOriginalMessage><I>-------Original Message-------</I></D=
IV>
<DIV>&nbsp;</DIV>
<DIV id=3Dreceivestrings>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A href=3D"m=
ailto:EUforum at topica.com">EUforum at topica.com</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> Friday, Octo=
ber 17, 2003 4:30:21 AM</DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A href=3D"mai=
lto:EUforum at topica.com">EUforum</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> RE: How d=
o you populate a ListView?</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Euphoria Mailing List =3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <BR><BR><BR>should be <BR>count =3D addLVI=
tem(myLV, 0, {db_key,db_data})<BR>You can replace the 0 with the id for a=
n icon returned whith addIcon <BR>command</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got the ListView displaying my data, thanks to Tony, but how do I =
get rid of the thing?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I set up a procedure so that when I click on the "Print to Screen" m=
enu item it pops up the ListView showing the contents of the database, bu=
t how do I get rid of the thing and make it go away?&nbsp; I originally h=
id it with SetVisible.&nbsp; There is no close button to click to make it=
 invisible again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also, if I click on one of the items in the ListView I'd like to be =
able to retrieve the whole record and display it.&nbsp; Is this doable?<B=
R><BR><A href=3D"mailto:ronaustin at alltel.net">ronaustin at alltel.net</A> wr=
ote:<BR>&gt; I am trying to display the contents of a database using list=
view.</DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
--------------Boundary-00=_S0RWENY1VA4000000000--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu