Sol.util.Find

Sol.util.Find = function(searchStr, start, ignoreCase, searchPosition)

Looks for and returns a string in global (or a table's) variables

Convenience function for Sol.util.FindInTable. Useful for commands entered by the user from the edit box.

Parameters: + searchStr  - String in the format " [] [ ]" (the parts of the string are space-separated) searchItem is a string or part of a string you're looking for searchType is what you want to search for: 'table', 'function', 'string', 'number', 'boolean', or 'all'. Default is 'all'. table is the table to look in; if not specified, looks globally + start      - If there are more than Sol.util.MaxSearchResults results, you'll                get a message saying " = more not shown...". Use the start parameter to specify what "page" of the results to show. So, setting start to, say, 30 will return results 30 through 30+MaxSearchResults. + ignoreCase - Search ignoring case. + searchPos  - Sol.constants.SEARCH_POS_START, Sol.constants.SEARCH_POS_END, or Sol.constants.SEARCH_POS_ANY. Default is SEARCH_POS_ANY Specifies where to look for searchStr: at the begining, end, or anywhere in the table values Returns: + A table containing all items that match searchStr and the other parameters specified.

Eample: Sol.util.MaxSearchResults = 5 local results = Sol.util.Find("Frame table PlayerFrame", 3, true, Sol.constants.SEARCH_POS_END) Sol.io.PrintTable(results)

This prints the 3rd through 8th tables found in PlayerFrame that have Frame at the end.

Note: To print this out, use Sol.io.PrintTable. To change the number of results returned, change Sol.util.MaxSearchResults