|
Hi Mike,
It turns out that I got myself with a shortcut that didn't point where I thought it did!
Your response was excellent though...and raised a couple points which I will try to use in the future...
A simple copy and paste can tell a lot more than my "words and analysis" method of asking a question.
I got myself with the "wrong datatype variable" issue once before; I felt real good about not making the same mistake this time!
I did notice that if the result variable is not declared, that the variable is created with a text (4) datatype. So I figured that couldn't be the problem. However, that does not make up for the fact that an explicit variable declaration is good practice! Thanks for the reminder!!
Best Regards,
Ted
Ted Lienhard CNE NCT
Golden Valley Consulting >>> MikeB<[EMAIL PROTECTED]> 1/18/2008 4:58 PM >>> 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. |
- [RBASE-L] - Re: Variable List View A. Razzak Memon
- [RBASE-L] - Re: Variable List View jan johansen
- [RBASE-L] - Re: Variable List View jan johansen
- [RBASE-L] - Re: Variable List View A. Razzak Memon
- [RBASE-L] - Re: Variable List View Ted Lienhard
- [RBASE-L] - Re: Variable List View A. Razzak Memon
- [RBASE-L] - Re: Variable List View MikeB
- [RBASE-L] - Re: Variable List View Ted Lienhard
- [RBASE-L] - Re: Variable List View A. Razzak Memon
- [RBASE-L] - Re: Variable List View Ted Lienhard
- [RBASE-L] - Re: Variable List View Ted Lienhard
- [RBASE-L] - Re: Variable List View A. Razzak Memon

