Evenimente
17 mar., 21 - 21 mar., 10
Alăturați-vă seriei de întâlniri pentru a construi soluții AI scalabile bazate pe cazuri de utilizare din lumea reală cu colegi dezvoltatori și experți.
Înregistrați-vă acumAcest browser nu mai este acceptat.
Faceți upgrade la Microsoft Edge pentru a profita de cele mai noi funcții, actualizări de securitate și asistență tehnică.
Assigns a value to a variable or property.
variableorproperty = value
variableorproperty
Any writable variable or any property.
value
Any literal, constant, or expression.
The element on the left side of the equal sign (=
) can be a simple scalar variable, a property, or an element of an array. The variable or property cannot be ReadOnly. The =
operator assigns the value on its right to the variable or property on its left.
Notă
The =
operator is also used as a comparison operator. For details, see Comparison Operators.
The =
operator can be overloaded only as a relational comparison operator, not as an assignment operator. For more information, see Operator Procedures.
The following example demonstrates the assignment operator. The value on the right is assigned to the variable on the left.
Dim testInt As Integer
Dim testString As String
Dim testButton As System.Windows.Forms.Button
Dim testObject As Object
testInt = 42
testString = "This is an example of a string literal."
testButton = New System.Windows.Forms.Button()
testObject = testInt
testObject = testString
testObject = testButton
Feedback pentru .NET
.NET este un proiect open source. Selectați un link pentru a oferi feedback:
Evenimente
17 mar., 21 - 21 mar., 10
Alăturați-vă seriei de întâlniri pentru a construi soluții AI scalabile bazate pe cazuri de utilizare din lumea reală cu colegi dezvoltatori și experți.
Înregistrați-vă acum