Thank you,
I'm checking that ... I should have sent a little more info
here is what I have:

 textlen = FldGetTextLength(field);
 if (textlen > 0) 
// I put this in just to test the string
        {
        offset = 0;
        while(offset < textlen)
          {
                TxtGetNextChar(FldGetTextPtr(field), offset, &in);
                txtbuff[offset++] = in;
        }
        txtbuff[offset] = NULL;

// I can see this string in the debugger
// I tried both of these test

//      ch =TxtGetChar(FldGetTextPtr(field),0);
//      if(TxtCharIsDigit(ch) || ch == '-')
        
   if(TxtCharIsDigit(txtbuff[0]) || ch == '-')                          
   {
// not working here
        //      FDin = FlpAToF(txtbuff);
        //      FDin = FlpAToF(FldGetTextPtr(field));

//working here for StrAToI      
        deg = StrAToI(FldGetTextPtr(field));

//this line is READING low mem ???
        FDin = FlpAToF(FldGetTextPtr(field));                           
//?????????????????????????????????????????????

//the rest works for ints                       
        StrIToA(inbuffer, ((deg -32)*5/9));
FrmCustomAlert(FtoCAlert, FldGetTextPtr(field), inbuffer, NULL);                
        
I hope this is usefull info

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

Reply via email to