still setting the maxlength?

cjaymcmeans

Well-known member
Joined
Jan 12, 2005
Messages
85
Programming Experience
3-5
hi... im try to set the maxlength of the textboxes in my form...
problem is i dont know how to get the maximum length of the field when using datasets...

example...

when using adobd
you just use..

textbox.maxlength=recordset.fields("field").definedsize

when using oledbdatasets, datatables and datarows... i've got no clue as how im suppose to accomplish this...

hope you guys can help...

tnx..
cjay
 
Hi cjay,
Try with MaxLength Property of the DataColumn.........it will work fine for String data.....but non-text columns still the way to be figured out.


I hope this will help u....................

Regards,
Ritesh
 
i've done that already.. it still gives me a return value of -1.. dont know wats wrong with this...

tnx.. cjay
 
Back
Top