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

datacolumn field length

P: n/a
Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
dataColumn.MaxLength

Tom

Jack wrote:
Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #2

P: n/a
Thanks. I checked MaxLength and it is always -1. Is there a property of the
dataset to provide this info or something like that?

"tomb" wrote:
dataColumn.MaxLength

Tom

Jack wrote:
Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.