- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2010年VFP表单题(设计编程)专项训练
二级VFP表单题练习(2009级)
113、dsg1301.scx
属性参考设置如下:(组合框和命令按钮组可使用生成器直接设置部分属性)
######
form Form1
AutoCenter = .T.
Caption = 组合框的使用
######
label Label1
Caption = 请选择
######
combobox Combo1
RowSourceType = 1
RowSource = 年,月,日
######
commandgroup Commandgroup1
ButtonCount = 2
Command1.Caption = 确定
Command2.Caption = 取消
Command2.Enabled = .F.
######
114、dsg1401.scx
属性参考设置如下:(命令按钮组可使用生成器直接设置部分属性)
######
form Form1
Caption = 多项选择
######
container Container1
SpecialEffect = 1
######
checkbox Check1
Caption = 答案A
######
checkbox Check2
Caption = 答案B
######
checkbox Check3
Caption = 答案C
######
checkbox Check4
Caption = 答案D
######
commandgroup Commandgroup1
Command1.Caption = 确定
Command2.Caption = 重选
Command3.Caption = 退出
115、dsg1501.scx
属性参考设置如下:(列表框可使用生成器直接设置部分属性)
######
form Form1
Caption = 国家代码查询
######
listbox List1
RowSourceType = 6
RowSource = 国家名称,国家代码
######
label Label1
AutoSize = .T.
Caption = 国家名称
######
label Label2
AutoSize = .T.
Caption = 国家代码
######
116、dsg1601.scx
属性参考设置如下:
######
form Form1
Caption = 登录界面
######
container Container1
SpecialEffect = 0
######
label Label1
Caption = 用户名
######
label Label2
Caption = 密码
######
commandbutton Command1
Caption = 确定
######
textbox Text2
PasswordChar = *
######
117、dsg1701.scx
属性参考设置如下:
######
form Form1
AutoCenter = .T.
Caption = 页面选择
######
pageframe Pageframe1
Page1.Caption = 第一页
Page1.BackColor = 255,0,0
Page2.Caption = 第二页
Page3.Caption = 第三页
######
commandbutton Command1
Caption = 确定
######
以下题目
注:不得新建表单,不得增、删原表单上的控件,不得更改Class属性(类名)和Name属性(对象名);
表单运行后关闭,否则不得分。
213、dsg1302.scx
参考解答:编写“统计”按钮的click事件代码如下:
if thisform.optiongroup1.value=1
thisform.grid1.recordsource=sele 客户号,count(订单号) as 订单数,avg(金额) as 平均金额 from orders group by 客户号 into cursor lsb
endif
if thisform.optiongroup1.value=2
thisform.grid1.recordsource=sele 职员号,count(订单号) as 订单数,avg(金额) as 平均金额 from orders group by 职员号 into cursor lsb
endif
thisform.refresh
214、dsg1402.scx
参考解答:编写“显示”按钮的click事件代码如下:
cglb=bo1.value
thisform.grid1.
文档评论(0)