![Copy image Copy image](icons/copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
NextSolution Method
SwiPlCs interface ► SbsSW.SwiPlCs ► PlQuery ► NextSolution()()()()
Provide the next solution to the query. Prolog exceptions are mapped to C# exceptions.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public bool NextSolution()
Public Function NextSolution As Boolean
public: bool NextSolution()
member NextSolution : unit -> bool
![](collapse_all.gif)
Boolean
return true if successful and false if there are no (more) solutions.
return true if successful and false if there are no (more) solutions.
![](collapse_all.gif)
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.
![](collapse_all.gif)
Exception | Condition |
---|---|
PlException | Is thrown if SWI-Prolog Manual PL_next_solution() returns false |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60605.0 (1.1.60605.0)