PlCall Method (goal)

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog PlCall Method (goal)
SwiPlCs interfaceSbsSW.SwiPlCsPlQueryPlCall(String)
Call a goal once.
Declaration Syntax
C# Visual Basic Visual C++
public static bool PlCall(
	string goal
)
Public Shared Function PlCall ( _
	goal As String _
) As Boolean
public:
static bool PlCall(
	String^ goal
)
Parameters
goal (String)
The complete goal as a string
Return Value
Return true or false as the result of NextSolution() or throw an exception.
Remarks

Create a PlQuery from the arguments, generates the first solution by NextSolution() and destroys the query.

Examples
CopyC#
Assert.IsTrue(PlQuery.PlCall("is_list([a,b,c,d])"));
CopyC#
Assert.IsTrue(PlQuery.PlCall("consult('some_file_name')"));

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