quote:
Originally posted by seduar
Can anybody help me on this one.
HalScript Error 13 on Line 2644 in Column 8: Type mismatch: 'CDbl'
The File "Cprograms FilesabawareUltrahal Assitant 6HalScript.DBG" has been saved with the current Script being used for debugging purposes.
I Got this error since i placed the Loneliness 4 pluggin from scratch, I've been trying to ask him, but i guess he is not around at the moment.
Any Help somebody, If any one of you knows what is 'CDbl' can you tell me please.
[
]
VBScript CDbl Function
Returns an expression that has been converted to a Variant of subtype Double.
Syntax: VBScript CDbl Function
CDbl(expression)
Arguments: VBScript CDbl Function
expression
Any valid expression.
Remarks: VBScript CDbl Function
In general, you can document your code using the subtype conversion functions to show that the result of some operation should be expressed as a particular data type rather than the default data type. For example, use CDbl or CSng to force double-precision or single-precision arithmetic in cases where currency or integer arithmetic normally would occur.
Use the CDbl function to provide internationally aware conversions from any other data type to a Double subtype. For example, different decimal separators and thousands separators are properly recognized depending on the locale setting of your system.
This example uses the CDbl function to convert an expression to a Double:
Dim MyCurr, MyDouble
MyCurr = CCur(234.456784) ' MyCurr is a Currency (234.4567).
MyDouble = CDbl(MyCurr * 8.2 * 0.01) ' Convert result to a Double (19.2254576)
If you open up the HalScript.DBG in the Ultra Hal Assistant 6 folder with a line editor you can spot the problem on line 2644
Explanations of Type Mismatch:
Troubleshooting Code 800A000D - Type mismatch
Error 800A000D is straightforward to solve. The secret is to read the Windows Script Error message carefully, then locate the line number with the Type Mismatch.
Introduction to error Code 800A000D
This runtime error, 800A000D occurs when you execute a VBScript. My suggestion is that there is a VBScript statement that does not understand a keyword you are using in your script. Alternatively, you may not be running the script as an ordinary user and not as an Administrator.
The Symptoms you get 800A000D
The script does not execute as you hoped, instead you get a WSH error message. One possibility is that you are using a WSH object or method that has been misspelt.
Chuck kindly wrote in saying that another cause maybe that you are logged on as ordinary user, and not an Administrator.
The Cause of Code 800A000D
Your VBScript contains an illegal method, probably due to a typing mistake, an extra letter. Look for a clue opposite the phrase Error: Type mismatch.... In particular, double check the spelling of your objects.
Note 1: Source: Microsoft VBScript runtime error. This is not a syntax error in the sense of a missing bracket, more a typo in the keyword mentioned in the Error: line of your WSH Message.
Note 2: Error: Type mismatch: 'Join'. Chuck says this could mean that you are logged on as an ordinary user and not an administrator.
The Solution
Check the spelling of your variables and methods. Look for clues particularly the Line: number and check the Char: references. In the example it is Line: 14 Char: 1. In this instance the: 'Error: Type mismatch: 'CreateeObject'' tells us where the mistake is to be found.
In the case of runtime errors you can use this work around. Add this line: On Error Resume Next. A better technique would have to employ error correcting code.
Try logging on as an Administrator, especially if your error says: Error: Type mismatch: 'Join'. (My screen shot says Error: Type mismatch: 'CreateeObject' - clearly my error is a typo. CreateObject.
If you are still stuck then a good script editor really would help this type of problem because it color codes the commands. Free download of OnScript:
http://www.computerperformance.co.uk/Logon/code/onscript.htmExample 1 of Error 800A000D Script
Error: CreateeObject- Extra letter e. Look on line 14.
Correction: CreateObject - Corrected, letter e removed
' MapNetworkDrive.vbs
' VBScript Error 800A000D to map a network drive.
' Author Guy Thomas
http://computerperformance.co.uk/' Version 2.2 - April 24th 2005
' --------------------------------------------------------'
Dim objNetwork
Dim strDriveLetter, strRemotePath
strDriveLetter = "J:"
strRemotePath = "\\alan\home"
' Purpose of script to create a network object. (objNetwork)
' Then to apply the MapNetworkDrive method. Result J: drive
Set objNetwork = CreateeObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath
WScript.Quit
' End of Example Error 800A000D VBScript.
Jerry[8D]