Murray Brown
asked on
VB.net If with declaration
I ant to declare a variable in the following code used with an API but
I get an error showing that the variable is hidden in an encclosong blocck
If Hosting.HostingEnvironment .IsDevelop mentEnviro nment Then
Dim myxeroconsumer As New Consumer("xxx", "yyyy")
Else
Dim myxeroconsumer As New Consumer("gggg", "jjjjj")
End If
I get an error showing that the variable is hidden in an encclosong blocck
If Hosting.HostingEnvironment
Dim myxeroconsumer As New Consumer("xxx", "yyyy")
Else
Dim myxeroconsumer As New Consumer("gggg", "jjjjj")
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER