Are you saying this?
- That you have a number of images - Some are "tagged" in their names - You have a list of the tagged images, e.g.: [32, 10, 19, 44] - The user can view the list in order - The user can also view ANOTHER image not in the list - You don't know how to get back to the next one in the list? If so, then do something like this... Build your list such that you have your list: global gImageList gImageList=[32,10,19,44] (but you probably made it with a loop) Then make a variable to keep track of what you last looked at: global gLastIndexViewed gCurrIndex =0 Then, if they they want to go next or previous, you just gCurrIndex =gCurrIndex + 1 gCurrIndex =min(gCurrIndex, count(gImageList)) or gCurrIndex =gCurrIndex - 1 gCurrIndex =max(gCurrIndex, 1) (the max/min stuff is to keep you from walking over the edges) Then simply: nextImageNum =gImageList[gCurrIndex] Is that what you're looking for? At 12:55 PM 8/9/02, Rodrigo Peres wrote: >Hi, I'm sorry but i didn't explain rigth. The problem is that I have all the >castmembers filled but only a few of them has this parameter. So the user >could be in an member that don't have your number in list and this is the >problem. >example the user is seeing the image from member 20, but this image is not >in list because it's name doesn't have the parameter. and the next value in >list is 32 ( the next image near that has the parameter) so.. how can i made >this jump?? I have to types of navigation a linear one (+ 1 and -1) and this >non-linear that jumps from where user is to the next point the has a >parameter... [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]