LSet Statement

αžαž˜αŸ’αžšαžΉαž˜β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αž˜αž½αž™β€‹αž‘αŸ…β€‹αžαžΆαž„β€‹αž†αŸ’αžœαŸαž„β€‹αž“αŸƒβ€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž¬β€‹αž…αž˜αŸ’αž›αž„β€‹β€‹αž’αžαŸαžšβ€‹β€‹αž“αŸƒβ€‹αž”αŸ’αžšαž—αŸαž‘β€‹β€‹αžŠαŸ‚αž›β€‹αž€αŸ†αžŽαžαŸ‹β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎβ€‹αž‘αŸ…β€‹αž’αžαŸαžšβ€‹αž•αŸ’αžŸαŸαž„β€‹αž‘αŸ€αž αž“αŸƒβ€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžαž»αžŸβ€‹αž‚αŸ’αž“αžΆβ€‹αžŠαŸ‚αž›β€‹αž€αŸ†αžŽαžαŸ‹β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎΒ αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–


LSet Var As String = Text ឬ LSet Var1 = Var2

αž”αŸ‰αžΆαžšαŸ‰αžΆαž˜αŸ‰αŸ‚αžαŸ’αžš αŸ–

Var αŸ– αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αžαž˜αŸ’αžšαžΉαž˜β€‹αž‘αŸ…β€‹αžαžΆαž„β€‹αž†αŸ’αžœαŸαž„Β αŸ”

Text αŸ– αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αžαž˜αŸ’αžšαžΉαž˜β€‹αž‘αŸ…β€‹αžαžΆαž„β€‹αž†αŸ’αžœαŸαž„β€‹αž“αŸƒβ€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšΒ αŸ”

Var1 αŸ– αžˆαŸ’αž˜αŸ„αŸ‡β€‹αž’αžαŸαžšβ€‹αžŠαŸ‚αž›β€‹αž”αžΆαž“β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž…αž˜αŸ’αž›αž„β€‹αž‘αŸ…Β αŸ”

Var2 αŸ– αžˆαŸ’αž˜αŸ„αŸ‡β€‹αž’αžαŸαžšβ€‹αžŠαŸ‚αž›β€‹αž”αžΆαž“β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž…αž˜αŸ’αž›αž„β€‹αž–αžΈΒ αŸ”

αž”αžΎβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžαŸ’αž›αžΈβ€‹αž‡αžΆαž„β€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš LSet αžαž˜αŸ’αžšαžΉαž˜β€‹αž†αŸ’αžœαŸαž„β€‹αž“αžΌαžœβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αž“αŸ…β€‹αž€αŸ’αž“αž»αž„β€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšΒ αŸ” αž‘αžΈαžαžΆαŸ†αž„β€‹αž“αŸ…β€‹αžŸαž›αŸ‹β€‹αžŽαžΆβ€‹αž˜αž½αž™β€‹αž€αŸ’αž“αž»αž„β€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž‡αŸ†αž“αž½αžŸβ€‹αžŠαŸ„αž™β€‹αžŠαž€β€‹αžƒαŸ’αž›αžΆΒ αŸ” αž”αžΎβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžœαŸ‚αž„β€‹αž‡αžΆαž„β€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž“αŸ„αŸ‡β€‹αž˜αžΆαž“β€‹αžαŸ‚β€‹αžαž½β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αž“αŸ…β€‹αž†αŸ’αžœαŸαž„β€‹αž”αŸ†αž•αž»αžβ€‹αžšαž αžΌαžβ€‹αžŠαž›αŸ‹β€‹αž”αŸ’αžšαžœαŸ‚αž„β€‹αž“αŸƒβ€‹αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αž”αŸ‰αž»αžŽαŸ’αžŽαŸ„αŸ‡β€‹αžŠαŸ‚αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž…αž˜αŸ’αž›αž„Β αŸ” αž‡αžΆαž˜αž½αž™β€‹αžŸαŸαž…αž€αŸ’αžαžΈβ€‹αžαŸ’αž›αŸ‚αž„β€‹αž€αžΆαžšαžŽαŸ LSet αž’αŸ’αž“αž€β€‹αž€αŸβ€‹αž’αžΆαž…β€‹αž…αž˜αŸ’αž›αž„β€‹αž’αžαŸαžšβ€‹αžŠαŸ‚αž›β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎ αž‘αŸ…β€‹αž€αžΆαž“αŸ‹β€‹αž’αžαŸαžšβ€‹αž•αŸ’αžŸαŸαž„β€‹αž‘αŸ€αžβ€‹αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžŠαžΌαž…β€‹αž‚αŸ’αž“αžΆΒ αŸ”

αž§αž‘αžΆαž αžšαžŽαŸ αŸ–


Sub ExampleRLSet
Dim sVar As String
Dim sExpr As String
    sVar = String(40,"*")
    sExpr = "SBX"
    REM  Align "SBX" within the 40-character reference string
    REM  αž‡αŸ†αž“αž½αžŸβ€‹αžŸαž‰αŸ’αž‰αžΆβ€‹αž•αŸ’αž€αžΆαž™β€‹αžŠαŸ„αž™β€‹αžŠαž€β€‹αžƒαŸ’αž›αžΆ
    RSet sVar = sExpr
    Print ">"; sVar; "<"
    sVar = String(5,"*")
    sExpr = "123457896"
    RSet sVar = sExpr
    Print ">"; sVar; "<"
    sVar = String(40,"*")
    sExpr = "SBX"
    REM Left-align "SBX" within the 40-character reference string
    LSet sVar = sExpr
    Print ">"; sVar; "<"
    sVar = String(5,"*")
    sExpr = "123456789"
    LSet sVar = sExpr
    Print ">"; sVar; "<"
End Sub

Please support us!