-
In the original program of VB, the annotation Zd is in single quotation marks'If the symbol is in double quotation marks, it is regarded as text and is not used as a comment guide, and the content after this symbol is the content of the comment.
In Visual Basic, most of the program execution is done in events.
In **, each event of the control needs to be declared, and the declaration method is similar to the declaration of a sub-procedure. Most widgets will automatically complete the declaration of the most common events of that widget when you double-click on the widget to enter the ** interface. The specific ** demonstration is as follows:
ActiveX controls.
ActiveX controls include controls provided by different versions of Visual Basic and those that are only available in the Professional and Enterprise editions, as well as controls provided by third parties. ActiveX controls are extensions to Visual Basic's built-in controls, developers can extend them as they like according to their personal needs, and the extended ActiveX controls will be displayed in the toolbox.
Objects can be inserted.
-
Mainly because I write a lot of **, after a long time, I forget the function or specific idea, so I will add notes to myself or others to see.
-
A comment is an explanatory statement that the writer adds to the text when writing it. A comment is a non-executive statement, but only a statement of the relevant content. For example, explain the function of a process, define the purpose of a variable, etc.
It's a good programming practice to add comments to computer level 2 programs. Every programmer has this experience: some of the ** written by themselves, and then read it after a period of time, it will feel very difficult to read and even difficult to read, and it is even more conceivable to read the ** written by others.
Therefore, when writing a program, it is a good idea to add comments to make it easier for you or others to read. In VB, comments start with the rem keyword, and a space is added between the rem keyword and the comment content. Comments can be on a single line or written after other lines of statements.
If you use the rem keyword after another statement line, you must use a colon (:) to separate it from the statement. You can also use an apostrophe (') instead of the rem keyword.
If you use an apostrophe, you don't have to add a colon when you use it on other lines. In the [**] window, after the annotation is added, it will be automatically displayed in green. There is also a button in the VB toolbar for setting a comment block, making it easy to set a multi-line statement as a comment or uncomment it.
By default, the toolbar does not appear in the interface, and can be opened by selecting the Toolbar option in the Toolbars submenu of the View menu. The operation of setting the comment block is to select the single or multiple lines of statements to be set as comments in the ** window, and click the [Set Comment Block] button in the [] toolbar to add a sprinkle sign () before each line of statements selected'Set the creation gate as a comment.
Click the Dismiss Comment Block button, and the opposite is true. Sometimes, a sentence can be so long that if you write it on a single line, it will be inconvenient to read or print**. In VB, a statement can be written on two or more lines using a line character ( A space and an underscore).
Within the same line, you can't add a comment after the line break, e.g. the following statement is wrong:'Set the form title. "Branches".
Branch breaks are usually added before and after the operator. You can't use a line break to separate a variable name or property name into two lines, e.g. the following statement is wrong:"Branches".
In general, a statement occupies a line, and there is no symbol at the end of the statement to indicate the end of the statement. However, it is also possible to write multiple lines on the same line, and use the number one (:) as a line continuation between two adjacent statements.
mid(string a, start looking for the bit value (data b), find the number of digits (data c)) Your function looks like this. >>>More
You only need to figure out what the lunar calendar is about, and you can calculate it yourself!
Troubled times - Zhao Liying, Xu Zhi'an.
Shushan War Season 1" TV series ending song). >>>More
Han, one of the six surnames of the Qing and Jin dynasties, was the surname of the late Northern Song Dynasty. Han is a multi-ethnic surname with multiple origins. Nowadays, parents are paying more and more attention to choosing a name for their child, and a good name will promote a child's life. >>>More
The idioms for learning in the first year of junior high school are as follows: >>>More