I know I asked a similar question before, but I didn't understand the answer and tried to do it a different way.
Basically, in my slide presentation, I want the user to be able to enter a keyword. Then, in field "display", it will list the results. So, I have decided to make a bunch of fields with keywords---one that corresponds to each slide (since the slides were done on Photoshop). So, I am using the offset function. I have gotten it to work when testing it with one field. My question is...when it's done searching and retrieving for the first field, how do I get it to search the second, third, fourth, etc.? Do I need the repeat function? I'm not so familiar with that. I want it to keep using the following script until it searches the last field. Any help would be appreciated. Thanks in advance. Here's the script that works for one field.
on mouseUp
global gOffst, gKywd, gSlideNum, gField
gSlideNum = 1
gField = "slide" & gSlideNum
gKywd = member("enterKeyword".text
gOffst = offset (gKywd, field gField)
put gOffst
if gOffst > 0 then
put member(gField).name into field "display"
else
put "nothing found" into field "display"
end if
end
Basically, in my slide presentation, I want the user to be able to enter a keyword. Then, in field "display", it will list the results. So, I have decided to make a bunch of fields with keywords---one that corresponds to each slide (since the slides were done on Photoshop). So, I am using the offset function. I have gotten it to work when testing it with one field. My question is...when it's done searching and retrieving for the first field, how do I get it to search the second, third, fourth, etc.? Do I need the repeat function? I'm not so familiar with that. I want it to keep using the following script until it searches the last field. Any help would be appreciated. Thanks in advance. Here's the script that works for one field.
on mouseUp
global gOffst, gKywd, gSlideNum, gField
gSlideNum = 1
gField = "slide" & gSlideNum
gKywd = member("enterKeyword".text
gOffst = offset (gKywd, field gField)
put gOffst
if gOffst > 0 then
put member(gField).name into field "display"
else
put "nothing found" into field "display"
end if
end