Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Knowing the type of a parameter
Message
De
19/02/2008 17:17:55
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Knowing the type of a parameter
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01294028
Message ID:
01294028
Vues:
66
In a specific method, I need to determine the type of the parameter being received. This is a method that the second parameter is an object. That can be a string, an integer, a boolean, etc. Based on the type, I need to adjust some thing in the code. How would I determine mine?

This is an overview of the method:
        ' Add a parameter
        ' expC1 Field
        ' expO1 Value
        Public Function ParameterAdd(ByVal tcField As String, ByVal toValue As Object) As Boolean
            Dim loParameter(1, 2) As Object
            loParameter(1, 1) = tcField
            loParameter(1, 2) = toValue

            ' If toValue is a boolean, we have to adjust the value, if necessary, as per the backend
            If ... Then

            End If

            oParameters.Add(loParameter)
        End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform