In attempting to execute the following line of code:
Expand|Select|Wrap|Line Numbers
- <script language=JScript>
- function SortVBArray(arrInput) {
- return arrVBArray.toArray().sort().join('\b');
- }
- </script>
Error: Expected Statement
Code: 800A0400
The error starts from the first character of the line
I am attempting to call this function in a .vbs file and I am placing it at the bottom of the file with all of the other functions
Do I need to add anything for this to be able to execute?
Here is the function from where I am calling the code:
Expand|Select|Wrap|Line Numbers
- Function SortArray(arrInput)
- SortArray = Split(SortVBArray(arrInput), Chr(8))
- End Function