Programmer Guide/Command Reference/QUERY: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
m (Text replace - "S_TOOLS-STx" to "{{STX}}")
Line 52: Line 52:
;<var>/m=wildcard</var>
;<var>/m=wildcard</var>


:<var>querystring</var> will be considered an S_TOOLS-STx wildcard expression (just like <code>[[Programmer Guide/Command Reference/FIND|FIND]]</code>).
:<var>querystring</var> will be considered an {{STX}} wildcard expression (just like <code>[[Programmer Guide/Command Reference/FIND|FIND]]</code>).


;<var>/m=substring</var>
;<var>/m=substring</var>

Revision as of 17:56, 5 April 2011

QUERY

The QUERY command, although similar to the FIND command, offers the programmer more choice in how to search.

QUERY [ /i ] [ /t ] [ /m=matchtype ] /- table startentry field querystring

QUERY /m=find table startentry cepr [ copr cexpr ... ] [ /t ] // works like SET table FIND

matchtype
One of the following keywords:
regular

wildcard substring full find

table
The table to search.
startentry
The zero-based index of the entry at with which to start the search.
field
The table field to search.
querystring
The string to search for.
cexpr, copr cexpr
See SET table FIND.
/i
The search will be case insensitive (by default, it is case sensitive).
/t
Only tagged table entries will be considered.
/m=regular
querystring will be considered a POSIX regular expression.
/m=wildcard
querystring will be considered an STx wildcard expression (just like FIND).
/m=substring
All characters in querystring will be considered autonomous, i.e. naming themselves. The FIND command will find the first entry of which querystring is a substring.
/m=full
All characters in querystring will be considered autonomous, i.e. naming themselves. The FIND command will find the first entry whose content is exactly identical to querystring (with the possible exception of case).
/-
You should always use the /- "non-option" option before the first argument in order not to cause arguments to be mistaken for options.

Navigation menu

Personal tools