Hi Vitaly,

Palm database records have no inherent structure, and there are no data
definition facilities such as you find in SQL, ODBC, or dBase. The developer
of each Palm application database is totally free to structure each record
as they see fit, and there is no rule about how fields are represented in a
record, nor even a requirement that records in the same database have the
same fields.

Your method of looking for a '\0' unfortunately will not work for non
char-string data. There isn't even a guarantee that character data is
null-terminated.

If the database is your own, you use structures and code in your own
application to read, write and interpret the records. If the database
belongs to another application, you would need to find a definition of their
record layout and learn how to interpret it somehow.

Good luck!
Glenn

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Vitaly_Romanishko
Sent: Friday, October 04, 2002 1:49 PM
To: Palm Developer Forum
Subject: Finding number of fields in a record


x-precedence:bulk

Hi,

is there any way to find number of fields in a record?
I wrote a routine, readung field after field and returning
when '\0' encountered, but it's giving me wrong return.
Sometimes "UUUUUU", sometimes "yyyyyy" go after last field of the record.
Is there any rule in terms of what goes after last field?


Vitaly Romanishko
Software Developer


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


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

Reply via email to