VB.NET & CBool() - CBool() : Returns an expression that has been converted to a Variant of subtype Boolean.
ShotDev Focus:
- VB.NET & CBool()
Example
CBool.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Dim A As String Dim B As String Dim C As String A = 5 B = 5 C = 10 Me.lblText1.Text = Cbool(A=B) Me.lblText2.Text = Cbool(A=C) End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label><br /> <asp:Label id="lblText2" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot