Assignment statement format

We have seen several examples of event handlers using assignment statements.

In each of these examples, the general form or syntax of the assignment statement is:

   <object name>.<property> = <constant>

An equal sign separates the left and right parts of the assignment statement. When it executes, the value of the constant on the right hand side is assigned to the property on the left hand side.

This is our first assignment statement, and we will see many others. They will all have the general form:

   <left hand side> = <value>

Where a value from the right hand side is assigned to the left hand side.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.