CBool Function

αž”αž˜αŸ’αž›αŸ‚αž„β€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž¬β€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”β€‹αž›αŸαžβ€‹αž‘αŸ…β€‹αž‡αžΆβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž”αŸŠαžΌαž›αžΈαž“ αž¬β€‹αž”αž˜αŸ’αž›αŸ‚αž„β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž›αŸαžβ€‹αžαŸ‚β€‹αž˜αž½αž™β€‹αž‘αŸ…β€‹αž‡αžΆβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž”αŸŠαžΌαž›αžΈαž“Β αŸ”

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


CBool (Expression1 {= | <> | < | > | <= | >=} Expression2) or CBool (Number)

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

αž”αŸŠαžΌαž›

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

αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΈβ€‹1, αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΈβ€‹2 αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž¬β€‹αž›αŸαžβ€‹αžŽαžΆβ€‹αž˜αž½αž™β€‹αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”Β αŸ” αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž•αŸ’αž‚αžΌαž•αŸ’αž‚αž„ αž’αž“αž»αž‚αž˜αž“αŸ CBool αžαŸ’αžšαž‘αž”αŸ‹ αž–αž·αžβ€‹ αž”αžΎβ€‹αž–αž»αŸ†β€‹αž“αŸ„αŸ‡β€‹αžŸαŸ„αž αž˜αž·αž“αž–αž·αžβ€‹ αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžαŸ’αžšαž‘αž”αŸ‹Β αŸ”

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

αž§αž‘αžΆαž αžšαžŽαŸβ€‹αžŠαžΌαž…β€‹αžαžΆαž„β€‹αž€αŸ’αžšαŸ„αž˜ αž”αŸ’αžšαžΎβ€‹αž’αž“αž»αž‚αž˜αž“αŸ CBool αžŠαžΎαž˜αŸ’αž”αžΈβ€‹αžœαžΆαž™β€‹αžαž˜αŸ’αž›αŸƒ β€‹αžαž˜αŸ’αž›αŸƒβ€‹αžŠαŸ‚αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αžŠαŸ„αž™β€‹αž’αž“αž»αž‚αž˜αž“αŸ InstrΒ αŸ” αž’αž“αž»αž‚αž˜αž“αŸβ€‹αž–αž·αž“αž·αžαŸ’αž™β€‹αž˜αžΎαž›β€‹αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹αžšαž€β€‹αžƒαžΎαž‰β€‹αž–αžΆαž€αŸ’αž™ "and" αž€αŸ’αž“αž»αž„β€‹αž”αŸ’αžšαž™αŸ„αž‚β€‹αžŠαŸ‚αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αžŠαŸ„αž™β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎΒ αŸ”

Error codes:

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

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


Sub ExampleCBool
Dim sText As String
    sText = InputBox("Please enter a short sentence:")
    REM Proof if the word Β»andΒ« appears in the sentence.
    REM Instead of the command line
    REM If Instr(Input, "and")<>0 Then...
    REM the CBool function is applied as follows:
    If CBool(Instr(sText, "and")) Then
        MsgBox "The word Β»andΒ« appears in the sentence you entered!"
    EndIf
End Sub

Please support us!