jsexecutor class : IsString(string) method
Description
Returns a value that indicates whether the argument is enclosed in double quotes.
Syntax
instance.IsString(string ret)
Arguments
| Class | Name | Description |
| string | ret | Return value from JavaScript. |
Return value
| Class | Description |
| bool | Whether the argument is enclosed in double quotes. |
Sample code
| 1: | string jscode = "return 'some string';"; // Returns a string in the JavaScript. |
| 2: | jsexecutor jse; |
| 3: | string result = jse.Execute(jscode); // Returns "some string". Double quotes are also included in the return value. |
| 4: | bool iss = jse.IsString(result); // true |
Notes
A return value from the JavaScript is returned as a string. If the original return value is a string, It is enclosed in double quotes.
Determines if the original return value is a string.
Links for reference
None.


