---
title: "Add argument?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/65122-add-argument"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Dino"
published: "2003-01-16T19:23:34.000Z"
updated: "2003-01-16T19:31:41.000Z"
replies: 2
views: 194
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/65122-add-argument"
---

# Add argument?

## #1 — Dino, 2003-01-16T19:23Z

Vad betyder 5an i detta exemplet.

```
Public Sub CreateOleDbParamColl(myConn As OleDbConnection)
  Dim myCommand As OleDbCommand = New OleDbCommand("SELECT * FROM Customers WHERE CustomerID = ?", myConn)
  Dim myParamCollection As OleDbParameterCollection = myCommand.Parameters
  Dim myNewParameter As OleDbParameter = myParamCollection.Add("CustomerID", OleDbType.VarChar, [red]5[/red] , "CustomerID")
End Sub 'CreateOleDbParamColl
```

Permalänk: https://www.webforum.nu/p/65122

## #2 — Viktor, 2003-01-16T19:30Z

Från MSDN

```
Parameters
   parameterName 
      The name of the parameter. 
   oleDbType 
      One of the OleDbType values. 
   size 
      The width of the column. 
   sourceColumn 
      The name of the source column.
```

/Viktor

Permalänk: https://www.webforum.nu/p/917223

## #3 — Dino, 2003-01-16T19:31Z

Tack då vet jag.

Permalänk: https://www.webforum.nu/p/917226

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/65122-add-argument
