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.




--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to