Chinese people's own VB: HB ++. Professional development tools for application software

zhaozj2021-02-08  224

HB language

1.1 HB (HB Transparent Language) HYALINE BASIC Language Abbreviation HB , Chinese Name: Transparent Language. It is based on MS Windows95 / 2000 / NT operation platform, which is a high-efficiency to develop Windows applications, and the development of Internet Network Applications is simple and convenient. HB is a professional development tool language for developing and maintaining applications (including web applications). The HB transparent language is based on an old Basic language script that combines object-oriented technology and Internet technology. HB inherits the simple and easy-to-learn nature of the Basic language while inheriting C object-oriented technology and built up the Internet technology into the inside of the language.

1.2 Hcy of HB Transparent Language HB consists of four parts: language compilation execution system, super free spreadsheet, graphic auxiliary design, Internet control system. The word processing system and the image processing system will be added later.

Language Compilation Execution System: Compile and interpret the underlying system of the grammar analysis program. Support for almost all object-oriented methods, it is also easy to make special controls. Dozens of controls in Windows can continue to expand. Support network distributed executive.

Super free spreadsheet: New concepts of free forms, not only can locate operational data, but also according to data objects. That is, the data relationship is not directly related to the ranks, and the data relationship does not require the row of the table, the relationship between the data is completely independent of the configuration of the interface. Tree shrinkage expansion features, data object classes can inherit expansion feature, etc. It is easy to implement tables. Using the desired technique, the form is operated in full mode, the screen is exactly the same. Graphic Auxiliary Design: Similar to the two-dimensional function of Auto CAD, new commands are unlimited embedded, mouse points selection command line prompt options and other functions and control methods of the tile design and use. Internet Control System: Provide a variety of communication methods, you can transfer data in your language to other applications. Support real-time transfer data, file upload download, conditional send acceptance, and more. Support for remote debugging data and data in remote applications. Four parts subsystems are organically combined in the HB transparent language, becoming a complete development of application tools. During using the HB development application, you will find that many features or cumbersome work is already available in the language, which is why HB is a specialized development tool for developing and maintaining applications.

1.3 What transparent language transparent language is HB unique creation, which gives the largest resource sharing capability of program designers. HB has resolved or provided issues in several aspects a) sharing and derived application applications. Whether it is C or a commercial application developed by VB or VF language, for third-party developers, there is no use of code, otherwise, just as Linux public code. HB provides a method of transfers that retain both the source code copyright, but also allows third-party developers to extend applications or changes. This is the application class inheritance concept. Through transparent language provided by transparent language, third-party developers overload their methods, attributes, events after inheriting application classes, add a her shell, execute, compile interpretation, automatic processing and generation s application. But for a third party, it is impossible to obtain the source code of the original. B) Share application data. Under certain conditions, the user's user (not developer) can directly transfer data in the running application to another application. For example: the stock market market data in the Internet network, when scrolling in the screen, the user can directly transfer the stock market market data to its own or third-party stock market market analysis software. c) In the development and maintenance of enterprise information management systems, modifications and increased functions must be indispensable. If they are directly modified in the source code separated by one year or longer, it is necessary to have difficulty, and even more difficult, the more difficult is not as good. do. Through the transparent language, each of the working units developed to object-oriented, do not need to formulate information and information flow, only the necessary information provided by the transparent language, the transfer data or distribution program execute, or overload some of the needs to change Features or inherit some of the functionality, etc., which makes thousands of programs are related to many smaller work units, and their income and deduct changes will not cause other errors, bringing fast and low cost for development and maintenance. Guarantee.

1.4 HB Features A) The user's upgrade maintenance of the application is simple and easy to use the data processing of the data processing provided by the HB transparent language. B) Object-oriented programming, as convenient as C development methods. C) Good memory management, do not require the creation and release of memory space, the HB language has been automatically completed. For example: Creating a class instance, when such an instance is used, HB automatically releases its space. D) Support all Windows style, rich control, or self-bucing controls. E) Table data objects make the table's data with the form display form, a set of data processing programs, can correspond to any input output interface. Replace the interface, do not change more program source code. F) Inherited data objects, providing users with free-playing places, which can design a wide variety of forms and ways of operation. G) Very fast running, you can speed up the development speed and quality of the application without worrying about the speed problem H). The collection in HB is both a dynamic pointer chain table, another two-fork tree that can quickly find keywords. It not only provides search, sorting, but also provides automatic data and reading data. The data in the collection can be any type, and the data is saved, and it automatically presses the random file or a data inventory data regardless of the data relationship. I) There is only a function in the HB transparent language, there is no process. The process is the function that has not returned. K) Almost all type information or module information inside the external capture program, and the captured information can be sent to other programs or in the network. L) Support Chinese programming, no casement, M), due to the development time, there is no visual design, but it is still convenient to design the program. Here, just forgive me. 1.5 A simple example program (for convenience of comments, in the example, HB itself can also use English letters) For example: The following code is a complete program that can run, it outputs a sentence:

'==================================================== ========= 'example 1.Abc' ====================================== =============================== Form example window public withevent button AS TBUTTON

Public Function button _Click () MsgBox ("Simple look!") End function end form Run results: A window appears in the screen, there is a button in the upper left corner, click this button, pop up the prompt box, prompt "Simply Have a look!".

The HB annotation method is the annotation content of all the contents after using the "'" single quotes, and single quotation. "Form Example Window" indicates a window class that creates a window, and generates a window instance variable called Example Window. "Public WitHevent button as tbutton" means that the location of the button is inserted in this window class, the location of the button is in the upper left corner. The control created by "WitHevent" is inserted directly into the window class in it. The function uses "function" and "end function" to represent the process of the functional implementation. "MSGBOX" prompt function, indicating that the content in the parameter is prompted by the prompt box. "End form" means the definition of the window class ends.

1.6 Another simple example program, for example: The following code is a completely running program that depends a button control class with a text input box:

'==================================================== ========= 'example 2.Abc' ==================================== ======================== Module Example Module 'Module is a newly variable location Class Class Class Class with input box for the button from TButton' from the button class derived new Class PUBLIC WITHEVENT input box as ttext 'Adds the Edit box to the new control class

Public function _click () preselection will click on the event built-in so that all instances of this class automatically bring this event after the creation of the function IF input box .Text = "HB " THEN MSGBOX ("You have learned to knock '" Input box .Text "'" Elseif Input Box .Text = "C " Then Msgbox ("Yes, you know'" input box .Text "'" Else Msgbox ("I don't know what you are knocking" Input box .Text ") End If End Function End Class End Module Form Example Window 'Define Window Class, and this window itself is a data type, so you can create a number of such types of instance public WitHevent Buttons AS Box button 'Add a control in this window (the button "button" of the previously defined' with input box ') Function example window ()' example window constructor CAPTION = "A simple example" button. Left = (width- button .width) / 2 button .top = (height- button. HEIGHT) / 2 End Function End Form

Run results: The screen appears window, the window is a button with a text edit box. Enter "HB " in the text editing box, then the button, the prompt box "You have learned to knock 'HB '"; enter "C " in the text editing box, the prompt box "is good, you know 'C '"; Enter other text in the text box, the prompt box "I don't know the 'knocking content" of you. " Note "from" in the "Class" keyword "of the Class with input box in the program," from "indicating the" button class with input box "inherited from the TButton control class. "Public WitHevent Enterprise AS TTEXT" Creates a text editing box in this button class. "Public Function _Click ()" indicates that "the button class" with the input box "pre-defined the process of clicking the event, if such an instance is created, the process will inherit this clicked event will be inherited. "Function Example Window ()" means the constructor of the Example Window window, run this function when the window is just created. In this example, this function places the position of the button in the middle of the window, and the title of the window is set to "a simple example".

Note: In HB , the members of the class do not require a statement. As long as you write between Class and End Class. Note: The event function can be predefined in advance without generating an instance, which will automatically inherit this event function in all of its instances, unless the instance is again defined this event function.

For more detailed introduction, please see: http://lifesoft.yeah.net address programming life

Melang

转载请注明原文地址:https://www.9cbs.com/read-2120.html

New Post(0)