davidcahan
asked on
Opposite Value of What CBool(Variable) evaluates to
How do i programmtically, in one line get the opposite value of what cbool is evaluating to. So if Cbool(Var) = True, how would I write the code so that the value would be false.
An example of what i'm doing might help:
Application("VendorVisible ") = True
ddlVendorID.visible = Cbool(Application("VendorV isible") )
ddlSalesSiteID.visible = -CBool(Application("Vendor Visible"))
In this example if Application("VendorVisible ") = true then the dropdownlist VendorID should be visible but the dropdownlist SalesSiteID should not. I want to avoid an if/then statement.
An example of what i'm doing might help:
Application("VendorVisible
ddlVendorID.visible = Cbool(Application("VendorV
ddlSalesSiteID.visible = -CBool(Application("Vendor
In this example if Application("VendorVisible
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER