Home All Groups Group Topic Archive Search About

KNOW THE SIZE OF A FIELD

Author
8 Nov 2006 12:33 AM
Raul
In visual basic 6

xxx.recordset.fields(1). size and in the fields of type string it indicated
you the maximum that allowed


In. net opposing net anything resemblance.


thank you

Author
8 Nov 2006 5:21 AM
Cor Ligthert [MVP]
Raul,

You can set the length in the DataColumn of the datatable.

http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.maxlength.aspx

I hope this helps,

Cor

Show quote
"Raul" <r***@inmovilla.com> schreef in bericht
news:en9121sAHHA.4864@TK2MSFTNGP04.phx.gbl...
>
> In visual basic 6
>
> xxx.recordset.fields(1). size and in the fields of type string it
> indicated you the maximum that allowed
>
>
> In. net opposing net anything resemblance.
>
>
> thank you
>
>
Author
8 Nov 2006 8:27 AM
Raul
With the maxlength of the datacolumn it returns me a -1

The field this limited one at 10 and it returns me a -1, according to the
help it is that he doesn't have you limit


Greetings

Show quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> escribió en el mensaje
news:eUCDFWvAHHA.4292@TK2MSFTNGP02.phx.gbl...
> Raul,
>
> You can set the length in the DataColumn of the datatable.
>
> http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.maxlength.aspx
>
> I hope this helps,
>
> Cor
>
> "Raul" <r***@inmovilla.com> schreef in bericht
> news:en9121sAHHA.4864@TK2MSFTNGP04.phx.gbl...
>>
>> In visual basic 6
>>
>> xxx.recordset.fields(1). size and in the fields of type string it
>> indicated you the maximum that allowed
>>
>>
>> In. net opposing net anything resemblance.
>>
>>
>> thank you
>>
>>
>
>
>
Author
8 Nov 2006 8:45 AM
Raul
It is an error documented who interests him

http://support.microsoft.com /?scid=kb;es;317175

So that it works before the adapter.fill it is necessary to put this it
lines

adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey

With this it already returns the correct fact.

Greetings and thank you to answer


Show quote
"Raul" <r***@inmovilla.com> escribió en el mensaje
news:%23rbf1%23wAHHA.3620@TK2MSFTNGP02.phx.gbl...
> With the maxlength of the datacolumn it returns me a -1
>
> The field this limited one at 10 and it returns me a -1, according to the
> help it is that he doesn't have you limit
>
>
> Greetings
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> escribió en el mensaje
> news:eUCDFWvAHHA.4292@TK2MSFTNGP02.phx.gbl...
>> Raul,
>>
>> You can set the length in the DataColumn of the datatable.
>>
>> http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.maxlength.aspx
>>
>> I hope this helps,
>>
>> Cor
>>
>> "Raul" <r***@inmovilla.com> schreef in bericht
>> news:en9121sAHHA.4864@TK2MSFTNGP04.phx.gbl...
>>>
>>> In visual basic 6
>>>
>>> xxx.recordset.fields(1). size and in the fields of type string it
>>> indicated you the maximum that allowed
>>>
>>>
>>> In. net opposing net anything resemblance.
>>>
>>>
>>> thank you
>>>
>>>
>>
>>
>>
>
>
>
>

AddThis Social Bookmark Button