bytes or chars ?

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Sep 16 20:17:54 CDT 2004


On 9/16/04 7:21 PM, "Robert Brenstein" <rjb at robelko.com> wrote:

> a)
> 
> For fields, we have Field_GetLength (should really be GetMaxLength).
> 
> It will, after change, return the number of bytes not chars as you say.
> 
> For BLOB fields, we have BLOB_GetDataSize.
> 
> This already returns number of bytes.
> 
> I am suggesting Field_GetDataSize (generalized version of
> BLOB_GetDataSize) and Field_GetCharCount so I can know how much
> data/chars is in a given VarChar or Text field.

Why you need Field_GetCharCount() ?

> Is it unreasonable to inquire this (if needed) instead of actually
> fetching the data into a local variable and counting in my code?

But you in any case will fetch data.
 

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list