Val Help, Please
So I have this code that reads in a CSV file which contains a student's grades for an exam. Usually, the grades are numeric (obviously), but on occasion, there will be outstanding circumstances that will result in the grade having an asterisk appended to it (95*, for example). So in the program that reads in the grades, I need to convert the datatype of the grade variable to a numeric before entering the info in my database.
All well and good, but for some reason the code I have isn't working. Currently the code in question looks like this (cfabort used for testing):
<cfset grade = Val('grade')>
#grade#
<cfabort>
Unfortunately, the output that is being generated is the grade with the asterisk still attached as opposed to the numeric value only. Am I incorrectly using cfset? What is the issue? Thanks in advance for your help!
