quote:
Originally posted by Carl2
All,
Just got the error message again, I have a few more details, error 5 line 2484 col 20 invalid procedure call or arguement 'ASC'.
Carl2
VBScript Asc Function
Returns the ANSI character code corresponding to the first letter in a string.
Syntax: VBScript Asc Function
Asc(string)
Arguments: VBScript Asc Function
string
Any valid string expression. If the string contains no characters, a run-time error occurs. Remarks: VBScript Asc Function
The AscB function is used with byte data contained in a string. Instead of returning the character code for the first character, AscB returns the first byte. AscW is provided for 32-bit platforms that use Unicode characters. It returns the Unicode (wide) character code, thereby avoiding the conversion from Unicode to ANSI.
In the following example, Asc returns the ANSI character code of the first letter of each string:
Dim MyNumber
MyNumber = Asc("A") ' Returns 65.
MyNumber = Asc("a") ' Returns 97.
MyNumber = Asc("Apple") ' Returns 65.
Note
The behavior of the AscB function depends on the byte ordering of the hardware platform, and the number of bytes used to represent Unicode characters in the system software. The function will produce different results on each supported operating system. Use with caution. The described behavior pertains to the Win32 version.
---------------------------------------------------
It's more of a glitch than an error, It should only occure on rare occasions using the Asc function, I highlighted one of the errors that can occure with the Asc function on ocassion in Red, If you're having this on more than just an rare occasion then something else may be wrong.
The script you refere too is a default script in HAL6 that will probably be upgraded with version 7 and any bugs ironed out.
Jerry[8D]