Data Commands
Execute SQL Query

Get Columns


Get Tables

Get Data Sources


Open Data Administrator

Read Registry

Write Registry
Copy Registry
Delete Registry
|
WARNING! Be cautious when using Delete Registry Key, since it is able to delete entire tree structures
(including all sub-keys).
No confirmation prompt is displayed prior to deletion, and there is no undo.
Improper use of this command could make the computer totally NON-FUNCTIONAL.
|
Read INI Data
Write INI Data
Delete INI Data
Encrypt Text
| Tip:
The basic encryption methods employed by vTask are considered to be low-security. The main purpose of this command is to provide a more secure alternative than just clear text for storing information. In other words, vTask text encryption is only meant to deter easy human interpretation of data. |
| Encryption Scheme | Description |
| ASCII Shift | This encoding works by shifting the individual bits of each character by the amount set with the key. The advantage to this method is that the encoded text always remains in alphanumeric format in the range of 32 - 127. It also does not create NULL characters (0), which makes this method the preferred choice for use in vTask. |
| Bit Shift | This encoding works by shifting the individual bits of each character by the amount set with the key. With this method, the encoded text will not include any NULL characters (0). |
Decrypt Text
Sort
| Sort Type | Original String | Sample Output |
| Ascending | bb;cc;aa | aa;bb;cc |
| Descending | bb;cc;aa | cc;bb;aa |
| Length (Shortest) | cc;bbbb;aaa | cc;aaa;bbbb |
| Length (Longest) | cc;bbbb;aaa | bbbb;aaa;cc; |
| Characters Z-A | hello | ehllo |
| Characters Z-A | hello | ollhe |
Binary Data
| *Tip:
To convert into binary data (i.e., to create bytes), use the vTask Binary System Variables such as "{\FF}".
|
| Binary Data | Original Data | Result |
| Get Byte Length | ABC + (bytes)00 01 FF | 6 (entire length is 6 bytes) |
| Convert Binary -> {\\XX} | ABC + (bytes)00 01 FF (the original binary data could come from a source such as Read File action, with the output saved in a variable) |
ABC{\00}{\01}{\FF} |
| Convert Binary -> Hex | ABC + (bytes)00 01 FF (the original binary data could come from a source such as Read File action, with the output saved in a variable) |
4142430001FF (41 42 43 00 01 FF) A=41, B=42, etc |
| Convert Binary -> ASCII (text) | 00 65 01 66 FF Strips out non-alpha characters (works for converting Unicode to normal text) |
"AB" (65=A, 66=B) |
Get Length
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the LEN( ) function. |
| Original Text | Output Result |
| "test" | 4 |
| "Hello World" |
12 |
Count Items
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the COUNTIF( ) function. |
| Original Text | Text to Count | Output Result |
| "aa,bb,cc" | "," | 2 |
| "aa,bb,cc" | "z" | 0 |
Find
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the FIND( ) function. |
| *Tip: Previous versions of vTask had a "Find Text" function, which returned a string rather than a position. Find Text is still supported for backwards compatibility, however the new Find function provides more capabilities. |
| *Tip: The Find command can also locate binary values (bytes), as well as values with embedded NULLs. For these cases, be sure to: 1) choose the "Binary" search option, and 2) use the vTask byte codes, such as {\00} for NULL and {\FF} for ASCII 255. |
| Original Text | Text to Search For | Starting Position | Output Result | Explanation |
| "The quick brown fox jumped over the lazy programmer" | "the" | 1 | 1 | Found at position #1 |
| "The quick brown fox jumped over the lazy programmer" | "the" | 10 | 33 | Found at position #33 |
| "The quick brown fox jumped over the lazy programmer" | "the" | 40 | 0 | Not Found |
Get Sub String
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the CHOOSE( ) function. |
| Original Text | Delimiter | Item | Output Result |
| "aa,bb,cc" | "," | 2 | "bb" |
| "aa,'bb,cc',dd" | "," | 2 | "bb,cc" (if allow quotes) |
Mid String
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the MID( ) function. |
| Original Text | Start Position | Length | Output Result |
| "test" | 2 | 2 | "es" |
Chop
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the CHOP( ) function. |
| Original Text | Text to Chop | Chop Method | Output Result |
| "fish,cat,dog" | "cat" | Chop Before | "cat,dog" |
| "fish,cat,dog" | "cat" | Chop Before and Including | ",dog" |
| "fish,cat,dog" | "cat" | Chop After | "fish,cat" |
| "fish,cat,dog" | "cat" | Chop After and Including | "fish," |
| "test" | "s" | Chop Everything After | "te" |
| "test" | "t" | Chop Everything After | "" |
| "test" | First Character | "est" | |
| "test" | Last Character | "tes" |
Replace
| *Tip: For the "inline version," which can be nested and is compatible with Excel formulas, see the REPLACE( ) and SUBSTITUTE( )functions. |
| Original Text | Replace | Replace With | Output Result |
| "test 123" | "123" | "replaced" | "test replaced" |
| "test 123" | "123" | "" | "test " |
| "test 123" | "t" | "Z" | "ZesZ 123" |
| "aaa bbb ccc" | "bbb" | "" | "aaa ccc" |
Insert
| Original Text | Position | Insert | Output Result |
| "test" | 2 | X | "tXest" |
| "test" | 10 | X | "test X" |
Random Text
| Character Range | Sample Output |
| a-z | "fefmt" |
| A-Z | "EFJGK" |
| a-z, A-Z | "wKdmFG" |
| a-z, A-Z, 0-9 | "sZ8gRbm3T" |
| a-z, A-Z, 0-9, \r\n | "r5WKs{newline}aFs3" |
| 0-9 | "192765" |
| (any) | "4;#ks.9Eqt" |