| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 785 人关注过本帖
标题:[求助]关于set filter to 很急,谢谢
只看楼主 加入收藏
liqingjian
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-12-10
收藏
 问题点数:0 回复次数:1 
[求助]关于set filter to 很急,谢谢
最近小弟按书上提示试着做关于超市的系统,在做"输入查询条件"的表单遇到了问题,该表单的"click"事件代码如下:
local findstr,oldrecord,stable
if thisform.findlx.value==""
messagebox("没有选择查询字段",48,"进销存管理系统")
thisform.findlx.setfocus
else
set exact off
select 商品信息
do case
case thisform.findlx.value="商品编码"
findstr="'"+alltrim(thisform.findkey.value)+"'$"+"商品编号"
case thisform.findlx.value="商品名称"
findstr="'"+alltrim(thisform.findkey.value)+"'$"+"商品名称"
case thisform.findlx.value="商品产地"
findstr="'"+alltrim(thisform.findkey.value)+"'$"+"商品产地"
case thisform.findlx.value="商品类别"
findstr="'"+alltrim(thisform.findkey.value)+"'$"+"商品类别"
endcase
oldrecord = recno()
set filter to &findstr
go top
do while .not. eof()
proadmin.refresh
thisform.windowstate = 1
if messagebox("是本次记录吗?",4+32,"进销存管理系统")=6
exit
else
skip
proadmin.refresh
endif
thisform.windowstate = 0
enddo
if eof()
messagebox("未找到指定的记录",48,"进销存管理系统")
go oldrecord
endif
set filter to
proadmin.refresh
thisform.release
endif

VF里是提示红色代码那里有错,刚学也看不出哪里错,希望各位高手能帮我解决,先谢谢了
搜索更多相关主题的帖子: thisform set filter value 
2006-12-10 16:36
Tiger5392
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:88
帖 子:2775
专家分:2237
注 册:2006-5-17
收藏
得分:0 
thisform.init():
public findstr

感言:学以致用。 博客:http://www./blog/user14/65009/index.shtml email:Tiger5392@
2006-12-10 16:53
快速回复:[求助]关于set filter to 很急,谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014101 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved