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 BasicVisual C++F#
public bool NextSolution()
Public Function NextSolution As Boolean
public:
bool NextSolution()
member NextSolution : unit -> bool 
Return Value
Boolean
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
ExceptionCondition
PlExceptionIs thrown if SWI-Prolog Manual PL_next_solution() returns false

Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)