此ASP代码有什么问题;你会如何解决

use*_*950 -4 asp-classic

当我运行脚本时,它说

Microsoft VBScript运行时错误'800a01f5'

非法分配:“ MAX_AGE”

/classic.asp,第8行

这是脚本:

response.Write(GetMaxAge())
Function GetMaxAge()

    const MAX_AGE = 50
    Dim iRtnValue

    MAX_AGE = 45

    iRtnValue = MAX_AGE

    GetStudentAge = iRtnValue

End Function
Run Code Online (Sandbox Code Playgroud)

Riv*_*Riv 5

MAX_AGE被定义为常量。您不能更改常量的值