It doesn't allow "-" characters.

Regards,
Steve Mann

# # #

On Nov 14, 2006, at 3:43 PM, Alan Ingleby wrote:

I always thought a numeric field didn't allow "-" and "." symbols.

On 11/15/06, Efrenk <[EMAIL PROTECTED] > wrote:
Add this to the form's frmOpenEvent

    FieldType *yourfield;
    FieldAttrType attr1;

    yourfield = (FieldType *)FrmGetObjectPtr(FrmGetActiveForm(), FrmGetObjectIndex(FrmGetActiveForm(), yourfield'sname));

    FldGetAttributes(yourfield,&attr1);
    attr1.numeric = 1;
    FldSetAttributes(yourfield,&attr1);

That allows only numerical values to be inserted (including decimal and negative numbers). Other characters won't be allowed
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

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


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

Reply via email to