>When I add a column in a dataset, I may have something like this:
>
>
>oData.oDataSet.Tables(0).Columns.Add(lcField, GetType(System.String))
>oData.oDataSet.Tables(0).Columns(lcField).MaxLength = lnLength
>
>
>But, when I need to create a Double type, I would like to specify the number of decimals. I cannot seem to find the property for that. Anyone would know?
No, the datable doesn't contain the precision information.
Here's what a decimal column in a typed dataset looks like in the xml file:
<xs:element name="tqty" type="xs:decimal" minOccurs="0" />
As you see, there in no way to store the precision. Similarly, there is no way to store the size of a string.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.