土地资源调查与评价(18页).doc
《土地资源调查与评价(18页).doc》由会员分享,可在线阅读,更多相关《土地资源调查与评价(18页).doc(18页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、-土地资源调查与评价-第 17 页Beginning Visual Basic1. Introducing Visual BasicA Story About Bill and PaulBack in the early 1970s, Bill and Paul were friends at Lakeside School in Seattle, Washington. Bill and Paul enjoyed working with computers and wrote many games they could play - games like Tic-Tac-Toe and m
2、oon landing games. These computer games were written in a computer language called BASIC (which stands for Beginners All-Purpose Symbolic Instruction Code). When the first small computer was developed in the mid 1970s, Bill and Paul had just started college. They had improved their computer skills b
3、y then and were able to tell that new computer how to use the BASIC language. They actually sold their version of the BASIC language to other people (it cost $350 and was stored on a cassette tape). They started making money selling BASIC and decided to start a company. You may have heard of their c
4、ompany - Microsoft! Bill is Bill Gates, who still runs Microsoft and is worth many billions of dollars, and Paul is Paul Allen, who no longer works for Microsoft, but has his own business ventures including computers and software, professional sports teams, and real estate development.Yes, the first
5、 product sold by Microsoft was the BASIC computer language. Microsofts name for their BASIC language product has changed over the years, having names like GW-BASIC, QuickBasic and QBasic, with the newest version being called Visual Basic. Visual Basic is one of the easiest programming languages to l
6、earn. Yet, even though it is easy to learn and to use, Visual Basic can also be used to develop very powerful computer programs. Many computer games are written in Visual Basic, businesses use Visual Basic to manage their databases, webmasters use Visual Basic in developing web pages, and people lik
7、e yourself use Visual Basic to build Windows applications they want and need in their everyday life. In these notes, you will learn how to use Microsofts Visual Basic to write your own computer programs. You may not become a billionaire like Bill and Paul, but hopefully youll have some fun learning
8、a very valuable skill.Lets Get StartedLearning how to use Visual Basic to write a computer program (like learning anything new) involves many steps, many new terms, and many new skills. We will take it slow, describing each step, term, and skill in detail. Before starting, we assume you know how to
9、do a few things: You should know how to start your computer and use the mouse. You should have a little knowledge on working with your operating system (Windows 95, 98, or NT). You should know how to resize and move windows around on the screen. You should know how to run an application on your comp
10、uter by using the Start Menu. You should know how to fill in information in Windows that may pop up on the screen. You should know about folders and files and how to find them on your computer. You should know what file extensions are and how to identify them. For example, in a file named , the thre
11、e letters ext are called the extension.You have probably used all of these skills if youve ever used a word processor, spreadsheet, or any other software on your computer. If you think you lack any of these skills, ask someone for help or consult one of the many books introducing the Windows operati
12、ng system. Lets get going. And, as we said, were going to take it slow. In this first class, we will learn how to get Visual Basic started on a computer, how to load a program (or project) into Visual Basic, how to run the program, how to stop the program, and how to exit from Visual Basic. It will
13、be a good introduction to the many new things we will learn in the classes to come.Starting Visual BasicWe assume you have some version of Visual Basic installed and operational on your computer. If you dont, you need to do this first. Again, this might be a good place to ask for someones help if yo
14、u need it. Over the past several years, there have been many versions of Visual Basic. You will be able to do this class using Visual Basic 4.0 (32 bit version), Visual Basic 5.0, or the new Visual Basic 6.0. Throughout the notes, we will refer to Visual Basic by its abbreviation VB, and you will be
15、 told what to do depending on what version of Visual Basic you are using. If you are using Visual Basic 4.0, look for the abbreviation VB4 for information particular to your version. If you are using Visual Basic 5.0, look for the abbreviation VB5 for information particular to your version. And, if
16、you are using Visual Basic 6.0, look for the abbreviation VB6 for information particular to your version.To start Visual Basic: Click on the Start button on the Windows task bar. Select Programs, then Microsoft Visual Basic # (where # is your version of Visual Basic). Click on Visual Basic # (where
17、again # is your version).(Some of the headings given here may differ slightly on your computer, but you should have no trouble finding the correct ones.) The Visual Basic program should start. Several windows will appear on the screen, with the layout depending on your version of VB.Main MenuToolbar
18、Title BarVB4:Title BarMain MenuToolbarVB5:VB6: Title BarMain MenuToolbarWhen starting VB5 or VB6, a dialog box asking about New Project type may appear. If it does, just click the Open button. Lets point out just a few items on the screen. At the top of the screen is the Visual Basic Main Window. At
19、 the top of the main window is the Title Bar. The title bar gives us information about what program were using and what Visual Basic program we are working with. Below the title bar is the Main Menu from where we can control the Visual Basic program. You should be familiar with how menus work from u
20、sing other programs like word processors and games. Under the main menu is the Toolbar. Here little buttons with pictures also allow us to control Visual Basic, much like the main menu. If you put the mouse cursor over one of these buttons for a second or so, a little tooltip will pop up and tell yo
21、u what that particular button does - try it! Almost all Windows applications (spreadsheets, word processors, games) have toolbars that help us do different tasks. This is the purpose of the Visual Basic toolbar. It will help us do most of our tasks. Well worry about the other things on the screen la
22、ter. Opening a Visual Basic ProjectWhat we want to do right now is open a project. Programs written using Visual Basic are referred to as projects. Projects include all the information we need for our computer program. When we are done writing our computer program using Visual Basic, we save it as a
23、 project. Included with these notes are many Visual Basic projects you can open and use. Lets open one now. We will use the Visual Basic toolbar to open a project. Look for a button on the toolbar that looks like a folder opening up. This is the Open Project button: Click on this button. An Open Pro
24、ject window will appear. Find the folder named BeginVB (stands for Beginning Visual Basic). This is the folder that holds the notes and projects for this course. Open that folder. Find the folder named BVBProjects. This folder holds all the projects for the course. In this folder are three other fol
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 土地资源 调查 评价 18
限制150内