Query.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic Result? Query(
string command,
params Object?[]? args
)
Public Function Query (
command As String,
ParamArray args As Object()
) As Result
public:
virtual Result^ Query(
String^ command,
... array<Object^>^ args
) sealed
Parameters
- command String
-
Command string.
For simplicity the command string can include arguments.
Each argument is separated by one or more spaces.
Arguments which contain spaces must be enclosed in ' or ".
Arguments which contain the same character as the enclosing quote, must double the quote.
- args Object
-
(optional) Arguments specified follow any arguments passed in the command string.
(Not supported.)
Return Value
ResultQuery returns a
Result object.
The
Result data is accessed via the property.
Implements
IBasicNoUIQuery(String, Object)
Remarks2025-01-24: This method does not do anything at this time.
All commands are fully documented at
https://www.winwrap.com/web2/basic/#!/ref/NETQ-0Help.htm.
Query was added to v2.9.1.24.
Functionality provided by Query depends on the version.
Typing
into the immediate window calls
Query and displays the
Result.
Item("Text") value.
The ? command lists all of the available commands.
The ?text command lists a brief description of the "text" command.
Example
Print the list of available commands:
using (Result result = basicIdeCtl1.Query("?"))
{
Debug.WriteLine(result["Commands"]);
}
Using Result As Result = BasicIdeCtl1.Query("?")
Debug.WriteLine(Result("Commands"))
End Using
using (Result result = basicIdeCtl1.Query(L"?"))
{
Debug.WriteLine(result[L"Commands"]);
}
See Also