Hey! I am having a little trouble getting the text of a field. This is my 
code.

frmP is a form pointer,
fld is a FieldPtr
Commandl is a char pointer.

My goal is to make it so that when the user types in l and presses the execute button 
that the palm will sound off the alarm. Right now I don't get any errors but noting 
happens when I pres the command button and type in l in the text field. Please help! 
Thanks!

GOD Bless!!!

    case MainExecuteButton:
                        
                            frmP=FrmGetActiveForm();
                            fld=( FieldPtr ) GetObjectPtr (MainCommandField);
                            Commandl=FldGetTextPtr (fld);
                            if(Commandl=="l") SndPlaySystemSound(sndAlarm);
            
                        break;

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

Reply via email to