{"identifier":37172,"topic":"Commands","name":"find","text":"<code>find [international] <i>text <\/i><\/code>\u00ac          [<code>in <i>field<\/i><\/code> ]  [<code>of marked cards<\/code>]<code> find chars [international] <i>text <\/i><\/code>\u00ac          [<code>in <i>field<\/i><\/code> ]  [<code>of marked cards<\/code>]<code> <br><br>\n\n find word [international] <i>text<\/i> <\/code>\u00ac          [<code>in <i>field<\/i><\/code> ]  [<code>of marked cards<\/code>]<code> find whole [international] <i>text <\/i><\/code>\u00ac          [<code>in <i>field<\/i><\/code> ]  [<code>of marked cards<\/code>]<code> find string [international] <i>text <\/i><\/code>\u00ac          [<code>in <i>field<\/i><\/code> ]  [<code>of marked cards<\/code>] <br><br>\n\n The<code> find <\/code>command searches for a text string in <b>all<\/b> the card and background fields (visible or not) <br>\n<br>\nof the current stack. <br><br>\n\n <code>International <\/code>considers diphthongs and diacritical marks as it searches.<code> In <i>field<\/i>  <\/code>searches only a specific card or background field. <code> Of marked cards<\/code> restricts its search to marked cards. <br><br>\n\n When<code> find <\/code>succeeds, a box appears around found text (or the first part of the text if the targets are discontinuous); <code>the result <\/code>is set to<code> empty<\/code>. When<code> find <\/code>fails,<code> the result <\/code> is set to the string<code> \"Not found\"<\/code>. <br>\n","related":{"21415":null,"70576":"dontSearch","56033":"foundChunk","56310":"foundField","56528":"foundLine","56722":"foundText","41060":"mark"},"examples":"find \"HyperCard\"\n\n-- Restrict the search:\nfind \"select\" in bkgnd field \"Title\"\nfind \"select\" in card field id 8293\nfind \"select\" in marked cards\nfind \"select\" in field 2 of marked cards\n\n-- Find partial matches or whole words only:\nfind chars \"elect\" in bkgnd fld \"title\" -- will match select\nfind word \"msg\" in second card field  \nfind chars international \"b\u00f8hr\"\n\n-- Find whole and find string include any spaces as part of the string:\nfind whole \"lets you search for a whole phrase\" \nfind string \"ets you search for part of a phr\"\n\n-- Find the contents of a variable:\nfind whole currentFindVar\n\n-- Find the contents of a field:\nfind whole (field \"title\") in field \"index\"\n\n-- Find any general expression:\nfind string (char 1 to 4 of the short name of this card)","demo":"<code><pre>on findDemo\n  -- find a contiguous string of characters, including spaces:\n   set cursor to watch\n   <b>find string<\/b> \"ind a contig\" in field \"Demo Script\"\n   wait 2 seconds\n   -- next, find a phrase:\n   <b>find whole<\/b> \"find a phrase\" in field \"Demo Script\"\n   wait 2 seconds\nend findDemo<\/pre><\/code>\n ","debug":{"9":["find [international]"],"10":["of the current stack"]}}