Let Statement

ផ្តល់​តម្លៃ​មួយ​ទៅ​អថេរ​មួយ ។

វាក្យ​សម្ពន្ធ ៖

Let Statement diagram


[Let] variable = expression

ប៉ារ៉ាម៉ែត្រ ៖

variable: Variable that you want to assign a value to. Value and variable type must be compatible.

រូប​តំណាង​ចំណាំ

ដូច​នៅក្នុងគ្រាម​ភាសា​ភាគច្រើន Basic ពាក្យគន្លឹះLet គឺតាមចិត្ត ។


ឧទាហរណ៍ ៖


Sub ExampleLet
Dim sText As String
    Let sText = "Las Vegas"
    MsgBox Len(sText) REM Returns 9
End Sub