Characer length = 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi there,
I found in the literature the C# line below:

dataAdapter.UpdateCommand.Parameters.Add("Subscriber", OleDbType.Char, 0,
"Subscriber");

Does the above mean that the value to be updated to field "Subscriber" is of
type 'Char' and that it can have ANY length?
 
Zest4Csharp said:
dataAdapter.UpdateCommand.Parameters.Add("Subscriber", OleDbType.Char, 0,
"Subscriber");

Does the above mean that the value to be updated to field "Subscriber" is of
type 'Char' and that it can have ANY length?

The column size is only used for output parameters. For input parameters,
it is instead calculated from the length of the input, and this parameter
is ignored. If you have more questions, you might have better luck posting
to microsoft.public.dotnet.framework.adonet. I hope this helps.
 
Back
Top