Visual Basic language and arithmetic
The United States launched the Microsoft Visual Basic (may be referred to VB), is the latest version of the current VB 2008 Beta2 (VB9) Chinese version. Visual meaning the visual, visible, referring to the development of operating systems like windows graphical user interface (Graphic User Interface, GUI) method, it does not need to prepare a large number code to describe the appearance of the interface elements and location, as long as the pre - The establishment of good drag and drop objects on the screen corresponding to the location. Basic is actually an abbreviation of the phrase; this phrase is Beginners all-purpose symbolic instruction code, the Chinese meaning "to the initial directive GM symbol code language."
Visual Basic learning, Professional Edition and Enterprise Edition versions to meet the different needs of the development. Study and apply to the ordinary version of the majority of learners and the use of Visual Basic development of the general staff of Windows applications, but professional version for computer professional development of staff, including the study of functional version of the full content control and Internet development tools such as advanced features ,Enterprise contain not only all the professional version of the content, there are automated tools such as Component Manager, professional programmers to make the development of a powerful group essence of distributed applicati
ons.
Visual Basic Section 1 the summary of Visual Basic Microsoft Visual Basic, ( abbreviate VB )as tool the most of application program one of under Windows operating platform. No matter beginner or professional developer, VB has all offered a whole set of tools to them, Development application program that it can be relaxed and convenient. So VB as most computer
1
first-selected the ABC of programming language of beginner. " Visual" mean method to adopt visual user of development figure interface (GUI), need and write a large number of code go and describe interface appearance and position of element seldom, Tow and show controlling part that need corresponding position to get screen can help figure design interface, user of figure; " Basic" means BASIC language, because VB is developed on the basis of already existing BAISC language.
VB is a kind of programming language in common use of Microsoft, It, including VBA of the numerous Windows application software use VB language in Microsoft Excel, Microsoft Accessed.
For users to carry on the secondary development; Make web page use more VBScript script language
sub collection of VB too at present. Utilize data of VB visit characteristic user can establish the data base to most data base forms including Microsoft SQL Server and other enterprises data base With the application program of front, and adjustable service end part. Utilize ActiveX(TM) technology, VB can use word processor, electronic data list he Windows function that application program offers extremely, Excel of Microsoft, Word of Microsoft, Even can use by VB specialty edition or enterprise application program and target that edition establish directly.
The procedure that users established finally is a real .EXE file,can issue freely.VB offer study edition, the specialty edition and enterprise edition, use to satisfied with different development demands. Study edition make programming personnel develop Windows and Windows application program of NT very easily.The specialty edition has offered the developing instrument with complete function to programming personnel of the specialty.Include studying all functions of edition in the specialty edition. Enterprise edition allow the professional personnel to establish strong distributed application
program in the form of group. It includes all characteristics of the specialty edition. So can choose different editions according to different needs. Section 2 integrated development environments Integrated environment of VB call IDE, made up of a lot of parts , include title board, menu fence, tool fence, controlling part case.And window body window, engineering management device window, attrib
ute window, code window and window body overall arrangement window body overall arrangement, etc. of designing etc.. Have covered all functions, such as design which develops the application program, editing, compiling and debugging, etc..
In VB, the application program calls the project too. When start VB and open a new project for the first time, can see and pursue integrated development environment interface that show. Visual Basic Integrated development environment VB come and organize development of application program through project, use project come and manage and form files of application program. One project uses the environment to make up by several window bodies, standard module generally.
The system manages project through the project menu, for instance add the window body, quote . System allow turn on and manage a lot of projects besides. Section 3 Visual Basic language brief introductions Basic use and do the elementary high-level language that used often most. Its full name is Beginner' s All-purpose Symbolic Instruction Code, abbreviate as BASIC.
As its name suggests, Basic one specially for language that beginner design, because it easy to learn easy to know, So the body is popular. Early Basic language to belong to and solve translating type, so can carry out line by line , So it can see the result carried out at once , this is a very convenient design
for beginner. But it have concept of structure either, one that is in procedure maintain and management have as much as other language
basic语言是什么软件problems. But back-end Basic correct shortcoming of the above (such as Quick Basic), make it may used for and develop the large-scaler procedure too. The language is the basic composition, which forms VB procedure. VB has stipulated the form of sentences and function. Grammar: The sentence defines incantations [Sentence body] Sentence define agree with and used in fixed function of sentence, sentence body appoint concrete content or want concrete operation that carry out of sentence. All set of sentence VB language, carry on with VB sentence organic association finish a certain specific function the procedure. Interface + procedure can solve a certain application problem. VB application program code window write in" code editing machine" generally. " editing machine of code" is like the word processing software of a piece of height specialization, there are many easies function of writing VB code, Pursue to show [Example Ex-Hello ]In" code editing machine" code that window written.
“Editing machine of code” window Section 4 develop the application program with Visual Basic Use VB programming, design appearance of application program first generally, write every target procedure code or other treatment procedure of incident respectively, Work of programming should be light more.
The procedure of establishing the application program is as follows:
1.Establish application program interface The interface is the mutual bridge of user and procedure, Generally formed of window body and vision frame of the button, menu, text frameset. with standard WINDOWS interface of application program that VB establish. Require according to function of procedure and user and need of information interchange of procedure, Come to confirm that need those targets,plan the overall arrangement of the interface.
2. Design by each attributes of target in interface Demand and set up each attribute of target such as appearance, name, size of targeted. According to interface of planning. Most attribute person who fetch can set up through the attribute window when design already. Too can set up revising when operating in procedure through programming in procedure code. Have the targets respond programming by procedure code.
3. Respond procedure code of programming target Interface determine appearance of procedure only, design window add codes through" code editing machine" soon after the interface, Realize some make the tasks, such as responding, information processing, etc. after accepting external message, Add code , realize some response, information processing that make after accepting external information task, As editor's window of code pursued shows add codes “code editing machine” window
4. Keep project One VB procedure one project, at the time of designing a application program, system will set up one be expanded and called. Project file of vbp, project file include all relevant information of file that project set up this, Keep project keep associated documents of project this at the same time. For example the window body produced when design interfaces is kept and being expanded and being called. From sum. In the window body of foxfire. At the time of opening a project( file), this project relevant files load at the same time.
5. Operate and debugged by procedure Operate the procedure thoroughpin operate" selecting in the menu, when the mistake appears, VB system can offer information prompt can looked for and get rid of the mistake thoroughpin debug" within operate" menus too.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。