“ordinal type required”问题解决
来源:互联网 发布:央视影音能装网络电视 编辑:程序博客网 时间:2024/05/29 04:05
问题重现
case Copy(spbm,1,2) of '98': //无条码计件 begin Deal13JJM(spbm); end; '99': //无条码称重 begin Deal13SXM(spbm); end; else //有条码 begin end; end;
运行、报错“ordinal type required”;
分析
case后面的表达式只能接Ordinal 类型数据,不能接string类型,可以上网查查Ordinal 类型包括哪些。
解决
case StrToInt(Copy(spbm,1,2)) of 98: //无条码计件 begin Deal13JJM(spbm); end; 99: //无条码称重 begin Deal13SXM(spbm); end; else //有条码 begin end; end;
0 0
- “ordinal type required”问题解决
- eclipse Password required问题解决方法
- eclipse Password Required问题解决方法
- class type redefination问题解决
- Eclipse弹出Password Required窗口问题解决方法
- invalid constant type: 15问题解决
- Error 40000: Object (" ") did not match the required type `Hash'
- The attribute required is undefined for the annotation type XmlElementRef
- Field XX required a bean of type 使用@componentscan 解决
- Incompatible type.Found:'int',required:'java.lang.String'
- Required String parameter is not present 或 Unsupported Media Type
- Python 'ascii' codec can't encode character : ordinal not in range 问题解决
- shell 脚本 exit 1 报错:numeric argument required问题解决
- Mininet: Cannot find required executable controller 问题解决方法
- microsoft visual c++ 14.0 is required问题解决办法
- Failed to convert property value of type [$Proxy13] to required type
- Spring: Error Cannot convert value of type [$Proxy...] to required type
- spring 事务异常Failed to convert property value of type [$Proxy12] to required type
- 第五周上机实践项目——项目1-三角形类雏形-(3)
- 事务的传播和隔离级别
- 程序员如何保护眼睛
- 带备忘的斐波那契算法
- 开发工程师的职场人生路(转)
- “ordinal type required”问题解决
- Java 线程池
- ArcSDE数据库连接(直连、服务连)与GT_Geometry存储配置图解
- qt 未找到文件:mainwinodw.obj 解决方法
- 分析system_call中断处理过程
- Eclipse常用快捷键总结
- OSX 简易入门教程
- 百度网盘普通会员和超级会员有什么区别?
- JQuery笔记