True and False in VB represent a logical attribute, and the data type represented is Bool (Boolean type). True indicates that the logical attribute is true, and False indicates that the logical attribute is false.
2.
The first use of the True and Flase properties is to make a logical judgment on the result of an expression or event, and the second use is to set the Enabled property of the control to control when the control can be used in turn.
3.
Example of the first usage:
dimmed
A
be like
Bending piece
a =(3 & gt; 5)
At this point, you can get A=False, because 3 is less than 5 and 3 > 5 is obviously a False proposition, so the value of a is false.
4.
Examples of the second usage:
Command 1. Enabled = False
Set the properties of Command 1. If Enabled is False, the naming button of Command 1 cannot be selected, which is generally used to prevent some illegal operations. For example, in a division operation, if the divisor is 0, division should not be performed.