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.