77范文网 - 专业文章范例文档资料分享平台

vfp(2)

来源:网络收集 时间:2019-02-14 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Command3 Caption 返回

Command1中添加如下代码: use booksinfo

if allt(thisform.text1.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text1.setfocus else

if allt(thisform.text2.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text2.setfocus else

if allt(thisform.text3.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text3.setfocus else

if allt(thisform.text4.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text4.setfocus else

if allt(thisform.text5.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text5.setfocus else

if allt(thisform.text6.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text6.setfocus else

if allt(thisform.text7.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text7.setfocus else

append blank

repl 书号 with allt(thisform.text1.value) repl 编号 with allt(thisform.text2.value) repl 书名 with allt(thisform.text3.value) repl 作者 with allt(thisform.text4.value) repl 出版社 with allt(thisform.text5.value) repl 定价 with allt(thisform.text6.value) repl 册数 with allt(thisform.text7.value) repl 备注 with allt(thisform.edit1.value) repl 入库日期 with date() thisform .command2.click endif

endif endif endif endif endif endif use

command2中添加如下代码: thisform.text1.value=\thisform.text2.value=\thisform.text3.value=\thisform.text4.value=\thisform.text5.value=\thisform.text6.value=\thisform.text7.value=\thisform.edit1.value=\thisform.text1.setfocus

command2中添加如下代码: command3中添加如下代码: thisform.release

(2) 设计图书信息修改表单

建立一个新的表单,保存为“xxxg”,部分控件属性如下: 对象名称 Form1 属性名称 Caption Borderstyle Autocenter Maxbutton Minbutton showwindow Command1 Command2 Command3 Command4 Command5 Command6 Command7 Command8 Command1中添加的代码: thisform.text1.readonly=.f. thisform.text2.readonly=.f. thisform.text3.readonly=.f. thisform.text4.readonly=.f.

Caption Caption Caption Caption Caption Caption Caption Caption 属性值 图书信息修改 3可调对话框 .T. .F. .F. 0-在屏幕中 修改 删除 第一条 最后一条 上一条 下一条 快速定位 返回 thisform.text5.readonly=.f. thisform.text6.readonly=.f. thisform.edit1.readonly=.f. Command2中添加的代码: use booksinfo exclusive go nhere

mb=messagebox(\确定要删除吗?\提示\if mb==1 delete pack

thisform.label1.init if nhere>num go bottom thisform.init else

go nhere thisform.init endif endif

Command3中添加的代码: go top

nhere=recno()

thisform.label8.caption=allt(str(recno)) thisform.command4.enabled=.t. thisform.command6.enabled=.t. thisform.init

Command4中添加的代码: go bottom nhere=recno()

thisform.label8.caption=allt(str(recno)) thisform.command3.enabled=.t. thisform.command5.enabled=.t. thisform.init

Command5中添加的代码: skip-1 if bof()

this.enabled=.f.

thisform.command3.enable=.f.

messagebox(\已经到第一条记录了! go top

nhere=recno() else

\提示\ thisform.init nhere=recno() endif

thisform.command4.enabled=.t. thisform.command6.enabled=.t. Command6中添加的代码: skip 1 if eof()

thisform.enabled=.f.

thisform.command4.enabled=.f.

messagebox(\已经到最后一条记录了!\提示\ go bottom nhere=recno() else

nhere=recno() thisform.init endif

thisform.command3.enabled=.t. thisform.command5.enabled=.t. Command7中添加的代码: sele booksinfo go top

if allt(thisform.text7.value)==\

messagebox(\请输入要查询的内容!\提示\ thisform.text7.setfocus else

locate for allt(书名)=allt(thisform.text7.value) if eof()

go bottom thisform.init

messagebox(\此书不存在,请重新输入!\提示\ thisform.text7.setfocus else

thisform.init endif

nhere=recno() endif

Command8中添加的代码:

thisform.release

7、读者模块设计

(1)建立表单保存为“dzlr” 对象名称 属性名称 属性值 Form1 Caption Borderstyle Autocenter Maxbutton Minbutton showwindow 录入图者信息 3-可调对话框 .T. .F. .F. 0-在屏幕中 确定 重填 返回 Command1 Command2 Command3 Caption Caption Caption Command1 中添加的代码: use readerinfo

if allt(thisform.text1.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text1.setfocus else

if allt(thisform.text2.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text2.setfocus else

if allt(thisform.text4.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text3.setfocus else

if allt(thisform.text5.value)==\

messagebox(\请输入完整的必要信息!\提示\ thisform.text4.setfocus else

append blank

repl 读者编号 with allt(thisform.text1.value) repl 姓名 with allt(thisform.text2.value) repl 年龄 with allt(thisform.text3.value)

repl 联系电话 with allt(thisform.text4.value) repl 详细地址 with allt(thisform.text5.value) repl 压金 with val(allt(thisform.text6.value)) repl 备注 with allt(thisform.edit1.value) repl 注册日期 with date()

if allt(thisform.combo1.value)==\

repl 性别 with allt(thisform.combo1.displayvalue) else

repl 性别 with allt(thisform.combo1.value) endif

thisform.command2.click

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库vfp(2)在线全文阅读。

vfp(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/461398.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: