NextSolution Method

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog NextSolution Method
SwiPlCs interfaceSbsSW.SwiPlCsPlQueryNextSolution()()()()
Provide the next solution to the query. Prolog exceptions are mapped to C# exceptions.
Declaration Syntax
C# Visual Basic Visual C++
public bool NextSolution()
Public Function NextSolution As Boolean
public:
bool NextSolution()
Return Value
return true if successful and false if there are no (more) solutions.
Remarks

If the query is closed it will be opened. If the last solution was generated the query will be closed.

If an exception is thrown while parsing (open) the query the _qid is set to zero.

Exceptions
Exception Condition
PlException Is thrown if SWI-Prolog Manual PL_next_solution() returns false

Assembly: SwiPlCs (Module: SwiPlCs) Version: 1.1.60301.0 (1.1.60301.0)