Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare
Message
De
16/05/2000 03:50:42
 
 
À
15/05/2000 22:30:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00369829
Message ID:
00369869
Vues:
20
>Dear all :
> i have a .dbf file. I need a write a program to check the file. i want to compare a variable by itself, how can i do it.
> Example : A = age
>
>flag =.t.
>if A < > A
> flag =.f.
>endif
>do while .t.
>

This doesn't make any sense at all; A is always equal to itself.

If you simply want to spin through the file until you reach a value where a field is not equal to a specific value, you can use a much simpler construct:
 flag = .t.
SCAN WHILE flag
   flag = (age = lnAgeToTestAgainst)
ENDSCAN
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform