On Tue, Oct 22, 2002 at 01:40:25PM -0400, Preston James wrote:
> Does anyone know what the issue is here. In the function get void
> CalculateConduitFill(void) the if(txtAWGText[i] == "12") never equates to
> true even if i step thru it and see that txtAWGText[i] does ="12". Im using
> developer studio by falch.net (prc tools) any help would be great.

Because the proper way to compare strings in C is through a function
(like StrCompare), while you are trying to compare _pointers_
(the string "12" has a different address from the string in your
variable).

Marco

-- 
========================================================================
Marco Pantaleoni                                  [EMAIL PROTECTED]
Padova, Italy                                              [EMAIL PROTECTED]
elastiC language developer                   http://www.elasticworld.org

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

Reply via email to