Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating OleDbParameterCollection
Message
From
23/12/2005 13:12:27
 
 
To
23/12/2005 13:03:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01080445
Message ID:
01080594
Views:
13
>
>Public oParameters As OleDbParameterCollection
>...
>oParameters = oDataAdapter.SelectCommand.Parameters
>
>
>oParameters doesn't sound to be a good naming really.
>
>
>loDataProvider.oDataAdapter.SelectCommand.Parameters.Add( ... )
>loDataProvider.oDataAdapter.UpdateCommand.Parameters.Add( ... )
>loDataProvider.oDataAdapter.InsertCommand.Parameters.Add( ... )
>
>
>PS: Might not be right. Thinking C# wrting VB:)

I am trying to set this up in a class. Once the class is instantiated this is when I initialize the oParameters property. So, I create it like this:
        Dim loDataProvider As Framework.Data = New Framework.Data
        loDataProvider.oParameters.Add(New OleDbParameter("@Username", lcUsername))
        If loDataProvider.SQLExec("SELECT Numero,Password,Session FROM " + tcTable + _
         " WHERE Username=""" + lcUsername + """", tcConnection) = False Then
            Framework.App.nLoginSuccess = 4
            Return False
        End If
so I can have an instance of the class, initialize oParameters property and then call the method.

Why also do you think oParameters is not a good representation of the property name?
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform