src/helpers/visualBasic.ts/visualBasic.ts
Methods |
|
Static asc | ||||||||
asc(value: string)
|
||||||||
Returns the asc code for the first char in the value.
Parameters :
Returns :
number
The asc code. |
Static chr | ||||||||
chr(charCode: number)
|
||||||||
Converts the input to a char.
Parameters :
Returns :
string
The resulting string value. |
Static inStr | ||||||||||||||||||||
inStr(string1: string, string2: string, compare: CompareMethod)
|
||||||||||||||||||||
Determines whether string1 contains the string2.
Parameters :
Returns :
number
The index where the value was found. |
Static inStr1 | |||||||||||||||||||||||||
inStr1(start: number, string1: string, string2: string, compare: CompareMethod)
|
|||||||||||||||||||||||||
Determines whether string1 contains the string2.
Parameters :
Returns :
number
The index where the value was found. |
Static len | ||||||
len(string: string)
|
||||||
len method, return the length of the string *
Parameters :
Returns :
number
{number} |
Static replace | |||||||||||||||||||||||||||||||||||
replace(expression: string, find: string, replacement: string, start: number, count, compare: CompareMethod)
|
|||||||||||||||||||||||||||||||||||
Replace the find value with the replacement value into the given expression.
Parameters :
Returns :
string
The new expression with the replacements. |
Private Static replaceInternal | ||||||||||||||||||||||||||||
replaceInternal(expression: string, find: string, replacement: string, start: number, count: number, compare: CompareMethod)
|
||||||||||||||||||||||||||||
Replaces the given find with the replacement in the expression. The replament can indicates custom values as start, count and compare method.
Parameters :
Returns :
string
The new expression with the replacements. |
Static strConv |
strConv(string: string, vbStrConv: VbStrConv)
|
strConv just support upperCase and return the text in upperCase
Returns :
string
{string} |
Private Static validateReplaceStart | ||||||||
validateReplaceStart(start: number)
|
||||||||
Validates replace start number is greather than 1.
Parameters :
Returns :
void
|
Private Static validatReplaceCount | ||||||||
validatReplaceCount(count: number)
|
||||||||
Validats replace count is positive
Parameters :
Returns :
void
|