You then check if this field has any value at all or is not numeric, and, if either of these conditions hold true, you return an error.
您要检查这个字段是否没有任何值或者不是数字的,以及如果出现这两种情况中的一种,您应该返回一个错误。
If opening the query is successful, it will return the value ERROR_SUCCESS; otherwise an error code will be returned.
如果成功地开始了此查询,那么它将返回值error_success;否则将返回错误的代码。
I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
应用推荐