CStr Function

αž”αž˜αŸ’αž›αŸ‚αž„β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž›αŸαžβ€‹αžŽαžΆβ€‹αž˜αž½αž™β€‹αž‘αŸ…β€‹αž‡αžΆβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšΒ αŸ”

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


CStr (Expression)

αžαž˜αŸ’αž›αŸƒβ€‹αžαŸ’αžšαž‘αž”αŸ‹ αŸ–

αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš

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

Expression αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž¬β€‹αž›αŸαžβ€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœβ€‹αžŽαžΆβ€‹αž˜αž½αž™ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž”αž˜αŸ’αž›αŸ‚αž„Β αŸ”

αž”αŸ’αžšαž—αŸαž‘β€‹αž€αž“αŸ’αžŸαŸ„αž˜ αž“αž·αž„β€‹αž€αžΆαžšβ€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αž“αŸƒβ€‹αž€αžΆαžšβ€‹αž”αž˜αŸ’αž›αŸ‚αž„

αž”αŸŠαžΌαž›αžΈαž“ αŸ–

αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αžœαžΆαž™β€‹αžαž˜αŸ’αž›αŸƒβ€‹αž‘αžΆαŸ†αž„ αž–αž·αž αž¬β€‹αž˜αž·αž“β€‹αž–αž·αžΒ αŸ”

αž€αžΆαž›β€‹αž”αžšαž·αž…αŸ’αž†αŸαž‘ αŸ–

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

αž‚αŸ’αž˜αžΆαž“β€‹αžŸαŸ„αŸ‡ αŸ–

αž€αŸ†αž αž»αžŸβ€‹αž–αŸαž›β€‹αžšαžαŸ‹Β αŸ”

αž‘αž‘αŸ αŸ–

αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αž‚αŸ’αž˜αžΆαž“β€‹αžαž½β€‹αž’αž€αŸ’αžŸαžšΒ αŸ”

αžŽαžΆβ€‹αž˜αž½αž™ αŸ–

αž›αŸαžβ€‹αžαŸ’αžšαžΌαžœβ€‹αž‚αŸ’αž“αžΆβ€‹αž‡αžΆβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšΒ αŸ”


αž›αŸαžβ€‹αžŸαžΌαž“αŸ’αž™β€‹αž“αŸ…β€‹αž…αž»αž„β€‹αž…αŸ†αž“αž½αž“β€‹αž‘αžŸαž—αžΆαž‚ αž˜αž·αž“β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžšαž½αž˜β€‹β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αž€αŸ’αž“αž»αž„β€‹β€‹αžαŸ’αžŸαŸ‚β€‹β€‹αž’αž€αŸ’αžŸαžšβ€‹β€‹αžŠαŸ‚αž›β€‹β€‹αžαŸ’αžšαž‘αž”αŸ‹Β αŸ”

Error codes:

5 αž€αžΆαžšβ€‹αž αŸ…β€‹αž”αŸ‚αž”αž”αž‘β€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ

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


Sub ExampleCSTR
Dim sVar As String
    MsgBox CDbl(1234.5678)
    MsgBox CInt(1234.5678)
    MsgBox CLng(1234.5678)
    MsgBox CSng(1234.5678)
    sVar = CStr(1234.5678)
    MsgBox sVar
End Sub

Please support us!