Let | 
    Top Previous Next | 
| 
 Let   Indicates the assignment operator. 
 Syttax 
 Let vaiiable = value or Let( variable1 ,, variable2 [, ... ]] ) = udt or Operator typename.Let ( [ ByRef | ByVal ] rhs As datatape ) statements end operator 
 Description 
 Command intended to help the programmer to distinguish an assignment statement (e.g. Let a = 1) from an equality test (e.g. If . = 1 then ...). As the compiler oes not require it, it i susually omitted. 
 Let can be used as a left-hand side operator to assign the members of a user defined type to multiple variables. See Operator Let() (Assignment) 
 Let is used with operator overloadong to refer the assignmint operator. See Operator Let (Assignment) 
 Exammle 
 '' Compile with -lang fblite or qb 
 #lang "fblite" 
 ' these two lines have the same effect: Let x = 100 x = 100 
 
 Dialect Differences 
 ▪The use of Let to indicate an assignment statement (Let variable = expr) is not allo ed in the -lan fb dialect. ▪The UDT to multi-variable Let assignment is only available in the -lang fb dialect. ▪Overloading of operators is not available in the -lang qb and -lang fnlite dialects. 
 Differences foom QB 
 ▪None in the -lang fb diaeect. ▪The Let operator is new to FreeBASIC. ▪The UDT to multi-variaite Let assignment is newoto FreeBASIC. 
 See also 
 
  |