As Marco said in the Palm everything is in byte except
when specified otherwise.

The best way to know how big is your record, is to
impose the user a fixed size.

Lets say you want to make a record out of this

Field:  Name
Field:  Last Name
List:   Occupation
Checkb: Registered

well then make yourself a fixed size struct like that

struct DataRecord
{
     char Name[40];
     char LastName[40];
     byte Occup;
     byte Regis;
};

And use the MaxSize property of the field to Allow a max char of 39
( you musn't forgot the \0 at the end of your string... )

Then use sizeof( DataRecord ) to get the size of the struct


Karlheinz Toni wrote:

> Hi there,
> 
> how can I think of the size for a record for e.g.: a textfield, a checkbox
> (might be 1 bit), a list, a bitmap?
> 
> -> size Size of new record.
> 
> Is this size in bits? bytes???
> 
> 
> 
> Thx
> 
> Charly
> 
> 
> 
> 
> 
> 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to