Thank you both, Jan and Mike,

I will try this this evening.

I found something similar yesterday but I gave a wrong name to the variable
(didn't use a system var).

Luc D.


----- Original Message ----- 
From: "Mike Byerley" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, November 08, 2010 3:29 PM
Subject: [RBASE-L] - re: recordcount in var listvew


> ITEMINDEX is zero based, so the Record number would be the ITEMINDEX + 1
>
>
> ----- Original Message ----- 
> From: "jan johansen" <[email protected]>
> To: "RBASE-L Mailing List" <[email protected]>
> Sent: Monday, November 08, 2010 7:53 AM
> Subject: [RBASE-L] - re: recordcount in var listvew
>
>
> > Luc,
> >
> > Make sure your Variable Lookup Listview has a componentid.
> > In your form OnAfterStartEep issue
> > GETPROPERTY yourcomponentid ITEMCOUNT vRecordCount
> > This is your total records.
> >
> > Then in the listview OnClick eep
> > GETPROPERTY yourcomponentid ITEMINDEX vSelectItem
> > This is your selected record
> >
> > With these 2 items you can build your "Rec x of Recordtotal"
> >
> > FYI the GETPROPERTY command returns TEXT values so this should
> > be as easy as
> > SET VAR vDisplayText TEXT = ('Record ' + .vSelectItem + ' of ' +
> > .vRecordCount)
> >
> > Have fun,
> >
> > Jan
> >
> >
> > -----Original Message-----
> > From: "Luc Delcoigne" <[email protected]>
> > To: [email protected] (RBASE-L Mailing List)
> > Date: Mon, 8 Nov 2010 08:58:28 +0100
> > Subject: [RBASE-L] - re: recordcount in var listvew
> >
> >
> > Hi,
> >
> > I have a form that is not based upon a table/view.
> > on this form I have a var listview that gives me the variable I need
when
> > selecting a row.
> >
> > Is there a nice feature to get a "Rec x of Recordtotal" that changes
upon
> > selecting another row in the var listview ?
> >
> > I know I can do this by putting an "on entry EEP" in the table
properties
> > when the form is based on a table...but this form is not based on a
> > table/view....
> >
> > how can I do this ?
> >
> > Luc D.
> >
> >
> >
>
>
>


Reply via email to