How to Use the LIKE and EXCEPT ClausesID: Q114702 2.60 3.00 | 2.60 kbprg kbdocerr
The information in this article applies to:
SUMMARYIn FoxPro 2.6, the number of commands that can accept a LIKE or EXCEPT clause has been increased. This article explains the functionality of the LIKE and EXCEPT clauses, and lists some of the commands that do or do not accept the new LIKE/EXCEPT clauses.
MORE INFORMATIONYou can use the following commands to create a database so that you can test the examples listed below:
When you are using a LIKE or EXCEPT clause, you can specify a list of
fields. For example, using the table created above, the following commands
would set fields to "afld" and "bfld":
The following commands, demonstrating the EXCEPT clause, would set fields
to "bfld" and "cfld":
You can also use LIKE and EXCEPT together. For example, the following
commands would set fields to only "dfld1":
The above statement would include all fields beginning with "d" (dfld1 and
dfld2), but would then exclude all fields named "dfld2", which leaves
"dfld1".
You cannot specify a traditional field list when using LIKE or EXCEPT. For example, the following commands would set fields to "afld" and "bfld" but not "xfyd":
Only one LIKE clause and/or EXCEPT clause can be specified. A second
instance of these clauses will be ignored. For example, the following
statement will set fields to "dfld1". The "LIKE x*" portion of the command
is ignored.
You can also specify all fields that contain the specified text. For
example, this command would set fields to "xfyd":
Of those commands that accept a field list, the commands that now accept
LIKE and EXCEPT clauses include:
Of those commands that accept a field list, the commands that do not accept
the LIKE/EXCEPT clauses include:
Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.60
KBCategory: kbprg kbdocerr
KBSubcategory: FxprgBrowse
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |