Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparison != What have I missed?
Message
De
15/12/2012 14:10:33
 
 
À
15/12/2012 13:46:52
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:
01559738
Vues:
43
There is nothing resetting Word3 between the word3 scan and the word4 scan, so in the word4 scan, word3 will have the same value it had in the last time through the word3 scan.

I see no reason for multiple scans It seems that everything can be done with a single scan. That being said, I have yet to see in English what you're trying to do (keep implementation out of it)

>>m.TheWord3 appears by magic. It has to get a value from somewhere, but this code doesn't show that for the second SCAN. For that matter, m.TheWord1, m.TheWord2 don't get values from anywhere either.
>>
>>
>>>In the first scan, TheWord3 is set to Indicator. Where does Word3 come from in the second SCAN?
>>>
>>>TheWord(s) exist in a table. Word3 is TheWord3 throughout for comparison to TheWord1 and TheWord2 to check for, and avoid duplication. Once the comparison is done and TheWord3 is not the same as 1 or 2, it is saved and TheWord4 begins being compared to 1,2 and 3. Once(or if) 5 distinct indicators are found and saved the code moves on to the next process.
>
>TheWord3 is a private variable initialized(TheWord3 = " ") when the program starts.
>There are five separate scans in numerical order. First if TheWord1 exists then the indicator is collected.
>
>In the second TheWord2 value is compared to TheWord1 and if == TheWord2 is discarded and the loop advances to the next value for TheWord2 and so on until there's a match or the complete indicator table has been searched
>
>In the third TheWord3 value is compared to TheWord1 and TheWord2 if == TheWord3 is discarded and the loop advanced to the next value for TheWord3 and so on . . .
>TheWord4 and 5 are coded in the same manner.
>
>I'm hoping this is what you wanted.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform