Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparison != What have I missed?
Message
 
À
13/12/2012 11:32:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01559575
Message ID:
01559576
Vues:
103
>I am making a coding error that I cannot see. The != comparison is not being caught by the program and duplicate records are being recorded.
>
>
>		SELECT indicators
>		SCAN
>			m.TheWord2 = ALLTRIM(LOWER(indicator))
>			m.sidenote2 = action && text from a field
>			IF m.TheWord2 $ lcTEXT AND m.TheWord2 != m.TheWord1 && The comparison of  m.TheWord2 != m.TheWord1  is not happening
>				SELECT MASTER
>				REPLACE indicator2 WITH m.sidenote2 
>				SELECT indicators
>				REPLACE hits WITH indicator.hits + 1
>				m.sidenote2 = ""
>			ENDIF
>		ENDSCAN
>
>
>What have I overlooked?


SET EXACT?
try with:
.. NOT m.TheWord2 == m.TheWord1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform