Wednesday 8 February 2017

VB.NET - ASP.NET - Fix Erro - Expression expected


Watch solution on YouTube


To fix it replace
    Dim a As Integer = 0
        Dim b As Integer = 3
        Response.Write(IIf(a == 0, 0, b / a).ToString)

with

    Dim a As Integer = 0
        Dim b As Integer = 3
        Response.Write(IIf(a = 0, 0, b / a).ToString)

No comments:

Post a Comment