Visual Basic程序设计教程 教学课件 ppt 作者 刘炳文 第5章

上传人:E**** 文档编号:89433156 上传时间:2019-05-25 格式:PPT 页数:6 大小:458KB
返回 下载 相关 举报
Visual Basic程序设计教程 教学课件 ppt 作者  刘炳文 第5章_第1页
第1页 / 共6页
Visual Basic程序设计教程 教学课件 ppt 作者  刘炳文 第5章_第2页
第2页 / 共6页
Visual Basic程序设计教程 教学课件 ppt 作者  刘炳文 第5章_第3页
第3页 / 共6页
Visual Basic程序设计教程 教学课件 ppt 作者  刘炳文 第5章_第4页
第4页 / 共6页
Visual Basic程序设计教程 教学课件 ppt 作者  刘炳文 第5章_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《Visual Basic程序设计教程 教学课件 ppt 作者 刘炳文 第5章》由会员分享,可在线阅读,更多相关《Visual Basic程序设计教程 教学课件 ppt 作者 刘炳文 第5章(6页珍藏版)》请在金锄头文库上搜索。

1、第5章 数据输入输出,Visual Basic的输入输出灵活、多样、方便、形象直观。本章将介绍与输入输出操作有关的方法和函数。,1,5.1 数据输出Print方法,5.1.1 Print方法 对象.Print表达式表,|; 5.1.2 与Print方法有关的函数和方法 1.Tab函数 2. Spc函数 3. Space$函数 4. Cls方法 5. Move方法 5.1.3 格式输出 Format$(数值表达式,格式字符串),2,格式输出举例,Sub Form_Click () Print Format$(12345.6, “000,000.00“) Print Format$(12345.6

2、78, “#,#.#“) Print Format$(12345.6, “#,#0.00“) Print Format$(12345.6, “$#,#0.00“) Print Format$(12345.6, “-#,#0.00“) Print Format$(.123, “0.00%“) Print Format$(12345.6, “0.00E+00“) Print Format$(.1234567, “0.00E-00“) End Sub,3,5.2 数据输入InputBox函数,InputBox函数格式 InputBox$(prompt,title,default,xpos,ypos,

3、helpfile,context),4,5.3 MsgBox函数和MsgBox语句,5.3.1 MsgBox函数 MsgBox(msg,type,title,helpfile,context) 5.3.2 MsgBox语句 MsgBox msg,type,title,helpfile,context,5,5.4 字形,1. 字体类型 对象.FontName=“字体类型” 2. 字体大小 对象.FontSize=点数 3. 粗体字 对象.FontBold=Boolean 4. 斜体字 对象.FontItalic=Boolean 5. 加删除线 对象.Fontstrikethru=Boolean 6. 加下划线 对象.Fontunderline=Boolean 7. 重叠显示 对象.FontTransParent=Boolean,6,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号