From: "Allan Lindsay" <[EMAIL PROTECTED]>
Subject: Re: Numerics and DB Items
> What I don't understand is how to store the "60" minutes (or other time)
as a
> numeric in the DB and table. I have a string saved right now and believe I
> should have an int saved. This should also allow me to right justify the
> displayed minutes.
You want to know how to store an integer in a Palm database? Use DmWrite().
If you are confused about how to use DmWrite, read chapter 6 of Neil Rhodes'
book, "Palm Programming: The Developer's Guide", available online at
http://www.palmos.com/dev/tech/docs/devguide/ch06.htm#TopOfPage , or for
even more info, read the "Data and Resource Manager" section of "The Palm OS
Reference".
Whether you save the value as a string or an integer doesn't really limit
how you display it. You can convert from an integer to a string with
StrIToA() or StrPrintF() and convert from a string to an integer with
StrAToI().
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/