Razzak, Looks like R:Docs 9.5 is leading us astray.
GETPROPERTY VarListViewCompID TOPITEM vTopItem This parameter is only available for the GETPROPERTY command. Dennis McGrath Software Developer QMI Security Solutions 1661 Glenlake Ave Itasca IL 60143 630-980-8461 [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of A. Razzak Memon Sent: Tuesday, July 09, 2013 2:14 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Variable Lookup ListView First-Line Focus At 02:02 PM 7/9/2013, Bruce A. Chitiea wrote: >How to set the last-chosen item in a Variable Lookup ListView as the >top-most visible item the next time around? > >It appears (maybe) that this is part of the solution: > >GETPROPERTY <VarListViewCompID> TOPITEM vTopItem >I'm not finding the rest. > >? ITEMINDEX ? > > From 'FormProperties_TOC.pdf': > >"Captures the TOPITEM value for the last selected row (item) in the >list. TOPITEM is used to determine the first item in the list view >that the user can see. TOPITEM reflects how far the list view has >been scrolled." > >?? Bruce, By design, the "GETPROPERTY <VarListViewCompID> TOPITEM vTopItem" is intended to "retain" the position of last selected item in the list especially after an EEP, such as, On Click EEP, On Double Click EEP, or On Right Click EEP that REFRESHes all the items in the Variable Lookup ListView. Here's an example of using TOPITEM ... -- Variable Lookup ListView (On Double-Click EEP) CLEAR VARIABLE vTopItem SET VAR vTopItem TEXT = NULL GETPROPERTY Cust_ListView TOPITEM vTopItem CLS EDIT USING Customers WHERE CustID = .vCustID PROPERTY Cust_ListView REFRESHLIST 'TRUE' PROPERTY Cust_ListView TOPITEM .vTopItem CLEAR VARIABLE vTopItem RETURN This will always retain the last selected position in the ListView. FWIW, 2013 SAT Sample Application Pack includes an application that illustrates the use of TOPITEM property in Variable Lookup ListView. Folder: \RBTI\2013_RBG95_SAT Sample Application: Using TOPITEM Property for Variable Lookup ListView Database: TopItem Form: UsingTOPITEMProperty Application Startup File: UsingTOPITEMProperty.DAT For your viewing pleasure ... http://www.razzak.com/sampleapplications/Using_TOPITEM_Property.jpg Very Best R:egards, Razzak. www.rbase.com www.facebook.com/rbase -- 30+ years of continuous innovation! 15 Years of R:BASE Technologies, Inc. making R:BASE what it is today! --

