By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,548 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

KNOW THE SIZE OF A FIELD

P: n/a

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

Nov 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Raul,

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

http://msdn2.microsoft.com/en-us/lib...maxlength.aspx

I hope this helps,

Cor

"Raul" <ra**@inmovilla.comschreef in bericht
news:en**************@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


Nov 8 '06 #2

P: n/a
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]" <no************@planet.nlescribió en el mensaje
news:eU**************@TK2MSFTNGP02.phx.gbl...
Raul,

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

http://msdn2.microsoft.com/en-us/lib...maxlength.aspx

I hope this helps,

Cor

"Raul" <ra**@inmovilla.comschreef in bericht
news:en**************@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





Nov 8 '06 #3

P: n/a
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
"Raul" <ra**@inmovilla.comescribió en el mensaje
news:%2******************@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]" <no************@planet.nlescribió en el mensaje
news:eU**************@TK2MSFTNGP02.phx.gbl...
>Raul,

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

http://msdn2.microsoft.com/en-us/lib...maxlength.aspx

I hope this helps,

Cor

"Raul" <ra**@inmovilla.comschreef in bericht
news:en**************@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






Nov 8 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.