A variable is assigned a new value with an Assignment statement.

 

Syntax:

variable = expression

 

Parameter:

Description:

variable

An expression to evaluated and assigned to variable.  

expression

An expression to evaluated and assigned to variable.  Expression can be a value, the output from a function, or the value contained within a property or another variable.

 

Example:

'  Variables should be declared before being assigned to in an assignment statement.
VARIABLES: variableOne TYPE: Floating, greeting TYPE: String

 
'  Assign the value of 50.60 to the numeric Floating type variable 'variableOne'
variableOne = 50.60

 
'  Assign the value "Have a nice day." to the String text variable 'greeting'
greeting = "Have a nice day."

 

PRINT greeting

Returns:

greeting

 

Links:

 

See Also:

VARIABLES

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 153

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software