Hi,

I want to get an integer value from a texfield. I use the code below.

Here is my struct:
--------------------------------------------
typedef struct
        {
        Int             YAS;
        Int             CINSIYET;
        CharPtr AD;
        CharPtr SOYAD;
        } KayitYapisi;
--------------------------------------------

And here is the code:

--------------------------------------------
StrCopy(buffer, FldGetTextPtr(GetObjectPtr(KayitYasField)));
Kayit.YAS = StrAToI(buffer);
--------------------------------------------

But when I use this method, the program becomes unstable. I also tried the
code below but it was even worse.

--------------------------------------------
Kayit.YAS = *((IntPtr)FldGetTextPtr(GetObjectPtr(KayitYasField)));
--------------------------------------------

How can I get an integer value from a texfield? 
Where do I make mistake?

Thanks in advance.

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