Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Knowing the type of a parameter
Message
From
19/02/2008 17:17:55
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Knowing the type of a parameter
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294028
Message ID:
01294028
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform