Ted,
  It does almost no good to ask without showing your variable declaration and 
the command you are using, Cut and Pasted (to avoid typos) from you code in the 
body of the email.

  If you are getting a null, sometimes the variable declaration made is of 
number Type when GetProperty only returns type TEXT, so if that is the trouble 
try:

Set Var vTopItem text = null

Getproperty CompIdOfListView TOPITEM 'vTopItem'

and don't issue any recalc variables until after the RefreshList and the 
Property command:

set var vTop Integer = (INT(.vTopItem))

Property CompIdOfListView TOPITEM .vTop


TESTED:

SET VAR vtopitem TEXT = NULL
GETPROPERTY vlvone topitem 'vTopItem'
PROPERTY vlvone refreshlist 'TRUE'
SET VAR vtop INTEGER = (INT(.vtopitem))
PROPERTY vlvone topitem .vtop






----- Original Message ----- 
From: "Ted Lienhard" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Friday, January 18, 2008 7:31 PM
Subject: [RBASE-L] - Re: Variable List View


Hi Razzak,

I too am trying to have a VariableLookupListView refresh but not change the 
position of the list items.

Is the proper operation of TOPITEM for Getproperty TOPITEM to find the top 
visible row of the VariableLookupListView and then Property TOPITEM to return 
the VariableLookupListView top visible item to the top position?  I am not 
succeeding in the attempt to make this happen...

I was using the latest build and then tried PR3 with no success.  Using my form 
and then trying RRBYW14 does not change my results.

When I trace the file in the PropertyTopItem form in RRBYW14, I noticed that 
the Getproperty TOPITEM only returns a NULL value.

What am I doing wrong?

Thanks!

Ted

Ted Lienhard CNE NCT
Golden Valley Consulting

>>> A. Razzak Memon<[EMAIL PROTECTED]> 1/17/2008 2:35 PM >>>
At 05:24 PM 1/17/2008, Jan Johansen wrote:

>Razzak,
>
>Just tested this implementation of TOPITEM.
>Most excellent!!!
>
>Thanks for your consideration.

Jan,

You are very welcome.

Keep those clients happy. Because R:BASE CAN!

Very Best R:egards,

Razzak.


--------------------------------------------------------------------------------


Hi Razzak,

I too am trying to have a VariableLookupListView refresh but not change the 
position of the list items.

Is the proper operation of TOPITEM for Getproperty TOPITEM to find the top 
visible row of the VariableLookupListView and then Property TOPITEM to return 
the VariableLookupListView top visible item to the top position?  I am not 
succeeding in the attempt to make this happen...

I was using the latest build and then tried PR3 with no success.  Using my form 
and then trying RRBYW14 does not change my results.

When I trace the file in the PropertyTopItem form in RRBYW14, I noticed that 
the Getproperty TOPITEM only returns a NULL value.

What am I doing wrong?

Thanks!

Ted

Ted Lienhard CNE NCT
Golden Valley Consulting

>>> A. Razzak Memon<[EMAIL PROTECTED]> 1/17/2008 2:35 PM >>>
At 05:24 PM 1/17/2008, Jan Johansen wrote:

>Razzak,
>
>Just tested this implementation of TOPITEM.
>Most excellent!!!
>
>Thanks for your consideration.

Jan,

You are very welcome.

Keep those clients happy. Because R:BASE CAN!

Very Best R:egards,

Razzak.


Reply via email to