Provide the next solution to the query. Prolog exceptions are mapped to C# exceptions.

C# | Visual Basic | Visual C++ | F# |
public bool NextSolution()
Public Function NextSolution As Boolean
public: bool NextSolution()
member NextSolution : unit -> bool

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.

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.

Exception | Condition |
---|---|
PlException | Is thrown if SWI-Prolog Manual PL_next_solution() returns false |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)