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)
Remarks
Functionality provided by Query depends on the version.
| Query |
Description |
| Browse |
Returns the list of libraries, types or members as would be shown by the
browser. (more
info) |
| DebugClear |
Clear the immediate window. (more
info) |
| DebugPrint |
Print text in the immediate window. (more
info) |
| Feature |
Returns (or sets) a feature's setting. (see below) |
| SetCompileId |
Set the compile id which is used in combination with Attribute CompileId
to prevent previously compiled scripts from being used when the
application's language extension API changes. (more
info) |
| Feature |
Description |
| AlwaysCompleteBlocks |
Complete a block even if the previous line didn't start the block. (more
info) |
| CrashOnError |
Cause an unhandled exception when a syntax or run-time error occurs. For debugging purposes only. (more
info) |
| KeywordSubstitutions |
Set keyword substitutions. (more
info) |
| MoveNestedDims |
Move nested Dims to the top of the sub/function/property block. (more
info) |
| PrettyFormatOperators |
Automatically insert spaces before and after assignment and dyadic
operators. (more
info) |
| PrettyFormatSeparators |
Automatically insert spaces after separators. (more
info) |
| RunModules |
Run, Step, Step Into, Step Over and Step To are enabled for all modules.
(more
info) |
| Special13 |
Enable 'non-nullable-number Is Nothing' returning False instead of syntax error.
(more
info) |
| ValidateCDate |
Validate CDate strings as parse time. (more
info) |
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 UsingNo code example is currently available or this language may not be supported.
See Also