473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

KNOW THE SIZE OF A FIELD


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
3 1186
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ken | last post by:
How can I determine a image file size before uploading it? I would like to make sure the size is under a maximum before taking the time to upload it. If I have to upload the file before...
7
by: Dean Trower | last post by:
Does anyone know a clean method of preventing scrolling altogether in a TEXTAREA (i.e. ensuring the user CANNOT type more text than fits inside the box area)? I'd like to know how, if so... It...
7
by: Tony Johnson | last post by:
Can you make a check box very big? It seems like when you drag it bigger the little check is still the same size. Thank you, *** Sent via Developersdex http://www.developersdex.com ***...
14
by: Mickey | last post by:
I have a database in which I have 2 tables. One table is Employees, other is Events. I have only one field in Employees and it is EmployeeName (text 50 chars). Events has fields AutoNumber,...
6
by: Lauren Wilson | last post by:
Hi Folks, I am totally confused about the following: 1. Is it possible to change the size of an EXISTING TEXT table field in Access 2k or later using DAO or ADO code? 2. If so, does anyone...
5
by: Pohihihi | last post by:
Why can't the following work when it has a set property defined? this.textBox1.Size.Width = 25; I get error Cannot modify the return value of 'System.Windows.Forms.Control.Size' because it is...
3
by: Jefferis NoSpamme | last post by:
Hello all, I'm trying to limit the file size to 1 meg on upload of image files and I am trying a script from javascript internet, but it is giving me errors on IE ² is null or not an object ³...
3
by: Adam Smith | last post by:
Hello, How does one adjust the input field size (height) in a form, say to accept 10pt rather than the 12pt txt that apparently is the norm. Thanks --Adam--
6
by: marktxx | last post by:
Although the C90 standard only mentions the use of 'signed int' and 'unsigned int' for bit-fields (use 'int' at your own risk) and C99 adds _Bool. It seems that most compilers create the size of...
4
by: shuisheng | last post by:
Dear All, I have a question. Assume #include <vector> using namespace std; class A { private:
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.