vfp 关于字段比较的奇怪现象,该怎么解决
vfp 关于字段比较的奇怪现象
有一个表里面包含一个字段 order_no 字符型 长度为9
记录情况如下
order_no
a001
a001
a001
a001
a001
a001
a001a
a001
现在
的情况是 用过滤命令和loca 命令
aa='a001 '//长度=字段宽度
set filter to order_no<>aa
可以把'a001a'找出来
用allt(order_no)<>allt(aa)
就找不出来了.
不知道大家是否碰到这个现象, 应该如何处理
------解决方案--------------------
主程序开头加代码:
Set Exact On
------解决方案--------------------
Set Exact On
or
order_no$aa
有一个表里面包含一个字段 order_no 字符型 长度为9
记录情况如下
order_no
a001
a001
a001
a001
a001
a001
a001a
a001
现在
的情况是 用过滤命令和loca 命令
aa='a001 '//长度=字段宽度
set filter to order_no<>aa
可以把'a001a'找出来
用allt(order_no)<>allt(aa)
就找不出来了.
不知道大家是否碰到这个现象, 应该如何处理
vfp
------解决方案--------------------
主程序开头加代码:
Set Exact On
------解决方案--------------------
Set Exact On
or
order_no$aa