--- Jay Francis <[EMAIL PROTECTED]> wrote:
> all field handles hold text?  Is that correct?

Quoting from the API Reference:

  "The field UI object is for user data entry in 
  an application. It displays one or more lines 
  of text. A field can be underlined, justified 
  left or right, and editable or uneditable.

> Assuming that is true, and you want to take the
> contents of that field that holds a numeric value 
> and put it in an integer database field, you get 
> it as text from the handle-convert it to an integer 
> using StrAToI so it can be written to the structure 
> variable as an integer?  Is this logic correct?

Yes, that is OK.  However, since a "database" on a PalmOS device is
just a collection of records, and each record can contain anything you
like (up to 64K bytes), you could also write the text directly to the
database without converting it to an integer.  Its up to you to decide
which is more convenient, which takes less space, etc.


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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

Reply via email to