CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft VBScript runtime error '800a01f5' Illegal assignment
- Article ID:
134 - Date Created
Wednesday, May 11, 2011 - This Article Has been Viewed
4657 times - Short Desc
If you have a function and a variable with the same name, you will get the 800a01f5 Illegal assignment error. Make sure that all names, functions and variables are different. - Details
If you are using a FUNCTION within your script, and you try to use the FUNCTION's name as a Variable for something else, you will get the following error.
Microsoft VBScript runtime error '800a01f5'
Illegal assignment: 'getRating'
/update.asp, line 3 - Recreate Issue
To recreate the issue.
<%
Function getRating()
end Function
getRating = request("rating")
%>
As you can see in the above example, we have our FUNCTION getRating()
And then we creating the Variable of getRating, and this clashes, as it is the same name. - Resolve Issue
To resolve this issue.
<%
Function getRating()
end Function
getRated = request("rating")
%>
In the above example, we changed our Variable name to getRated.
This will allow our code to function properly and without issue.
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825