Hi Nicolás

> Once I get a Pointer to a field, I can access its text. What I'd like to do
> is to check if its contents matchanoter variable. 
[...]
> if (fieldP->text == search)
> {
>     ....
> }

WARNING: *char_a == *char_b is absolutely wrong
(unless you want to know if the two pointers points to the same memory address)

to compare two stings you have to use StrCompare() or StrCaselessCompare() (similar to 
plane C strcmp(), but don't use this for Palm programs!)

by(e)
Stephan

-- 
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc

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