vendredi 14 août 2015

Set type of a variable using a condition

How to set type of a variable using a condition?
If I do like example below, my variable x is no more existing after the end if, here is my problem.

    If RequestedType = "Integer" Then
        Dim x As Integer
    Else
        Dim x As String
    End If



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire