With these constructors a Prolog query can be created but not opened. To get the results see NextSolution()()()()
A Query can be created from a string or by a name and PlTermV. The later is a native way and available for compatibility.
If a Query is created from a string representing arbitrary prolog text the helper classes PlQueryVar and PlQueryVariables comes into the game. In this case the most convenient way to get the results is to use SolutionVariables or ToList()()()().
For examples see PlQuery(String).
Icon | Member | Description |
---|---|---|
PlQuery(String) | With this constructor a query is created from a string. Uppercase parameters are interpreted a variables but can't be nested in sub terms. If you need a variable in a nested term use PlQuery(String, PlTermV). See the examples for details. | |
PlQuery(String, String) | locating the predicate in the named module. | |
PlQuery(String, PlTermV) |
Create a query where name defines the name of the predicate and av the argument vector.
The arity is deduced from av. The predicate is located in the Prolog module user.
| |
PlQuery(String, String, PlTermV) | locating the predicate in the named module. |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)