Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Navigating the cursor on List elements

Status
Not open for further replies.

CTO1

Technical User
Jun 17, 2003
14
0
0
GB
Hi all,
I've got a list item which is populated by a record group.
A procedure will move selected elements of the list to another list. The problem I've got is that whenever this happens the focus returns to the first element in the original list when I want it to navigate to the next element in the list.

The only way I can imagine doing this is by getting the index number of the list element which I have managed to do. How then do I navigate to the next element in the list ?
 
Try

Code:
:block.list_item := Get_List_Element_Value('block.list_item',index + 1);
 
You're right in that I can reference each element in that way however not by using the word index. Looks like i'm going to have to set up some sort of count.
 
You said that you have managed to find the index of the list element you want. So just substitute the variable you have stored it in for 'index' in my code....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top