Re: simple field question

2002-04-15 Thread Joe
--- 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 edi

simple field question

2002-04-15 Thread Jay Francis
all field handles hold text? Is that correct? 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

RE: Simple Field Question

2001-04-01 Thread Gert Wurzer
> return (FrmGetObjectPtr (frm, focus)); > am i missing a cast somewhere? > HELP please FrmGetObjectPtr returns a void* so you have to cast to FieldPtr. HTH, Best Regards, Gert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/t

Re: Simple Field Question

2001-04-01 Thread Philip Sheard
> Maybe because its 6 am or maybe i just dont know my pointers, but i cant get > this to work, i keep getting "cannot convert a void pointer to fieldtype > pointer > > > static FieldPtr GetFocusObjectPtr (void) > { > FormPtr frm; > UInt16 focus; > > frm = FrmGetActiveForm (); > focus = FrmGetF

Simple Field Question

2001-04-01 Thread Marcus
Maybe because its 6 am or maybe i just dont know my pointers, but i cant get this to work, i keep getting "cannot convert a void pointer to fieldtype pointer static FieldPtr GetFocusObjectPtr (void) { FormPtr frm; UInt16 focus; frm = FrmGetActiveForm (); focus = FrmGetFocus (frm); return