Click here to Skip to main content
15,890,946 members
Please Sign up or sign in to vote.
1.22/5 (4 votes)
See more:
Hi all

can any body help me


How can I return true false in vb script function


tx in advance
Posted
Updated 26-Apr-17 4:55am
v2
Comments
manognya kota 25-Jan-12 1:23am    
what is your function?could you explain your problem in little more detail?
CPallini 27-Jan-12 8:28am    
What?!

1 solution

No problem!

VBScript
Function Invert(x)
    Dim returnValue
    If x = False Then
        returnValue = True
    Else
        returnValue = False
    End If
    Invert = returnValue
End Function


Assigning to the name of the function will return the value that was assigned from said function.
Dee this tutorial on VbScript: VBScript Tutorial[^]

Regards,

Manfred
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900