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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Search feature...

Status
Not open for further replies.

manfishj

Programmer
May 30, 2002
44
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top