delphi - If statement for checking strings -
delphi - If statement for checking strings -
so i'm trying determine if 2 different strings same
if derobmodel.constructioncount > 22 begin := 22 derobmodel.constructioncount-1 begin constructionname[i] := derobmodel.constructions[i].name; showmessage(constructionname[i]); showmessage(derobmodel.houseproperties.stringvalue['nwall']); if constructionname[i]=derobmodel.houseproperties.stringvalue['nwall'] begin showmessage('hej'); igsurf[0]:=idwallcon[i]; end; layercount[i] := derobmodel.constructions[i].layercount; idwallcon[i] := i+1; end; end; the showmessage both of strings returns same string somehow won't go in if statement. ideas?
the = operator strings known work. when strings s1 , s2 equal, s1 = s2 evaluates true. otherwise evaluates false. = operator has been known work correctly in versions of delphi.
the conclusion draw if body of if not execute, 2 strings not equal. know 2 strings not equal, can debug programme work out why 2 things believed equal in fact not equal.
note equality testing = exact. letter case significant. whitespace significant. , on.
delphi
Comments
Post a Comment