ASP Classic - Type mismatch: 'CInt' - Easy question

后端 未结 4 2109
南方客
南方客 2021-01-19 14:26

Having an issue with type conversion in ASP classic.

heres my code:

        Set trainingCost = Server.CreateObject(\"ADODB.Recordset\")
    strSQL3 =         


        
4条回答
  •  误落风尘
    2021-01-19 14:32

    Rather than casting to a string, why not use CCur (Cast as Currency) so that your commas and any currency symbols (I think) are effectively ignored while doing arithmetic operations?

提交回复
热议问题