--- 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
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
> 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
> 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
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