Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date cannot be converted to varianttype
Message
From
19/01/2006 12:24:44
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Date cannot be converted to varianttype
Miscellaneous
Thread ID:
01088510
Message ID:
01088510
Views:
78
I have this nice function which receives a varianttype as the second parameter:
    ' Add a parameter in the hashtable
    ' expC1 Field
    ' expO1 Value
    Public Function ParameterAdd(ByVal tcField As String, ByVal toValue As VariantType) As Boolean
        oParameters.Add("@" + tcField, toValue)
    End Function
When I try to pass a date to the second parameter, I have a message that says that the date cannot be converted to a varianttype. Is there a workaround for that?
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