Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Missing operand (apparently)
Message
De
01/01/2007 11:37:55
 
 
À
31/12/2006 19:51:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01181122
Message ID:
01181209
Vues:
9
>>When I test this bit of code, I get a 'missing operand' error.
>>I can't see it. Can you?
>>
>>
>>Count to JanCount for Alltrim(Crimetype) = "B&E Garage" and Month(CrimeDate)= 1 ;
>>or Alltrim(Crimetype)= "B&E Home" and Month(CrimeDate)= 1 ;
>>or Alltrim(Crimetype)= "Home invasion" and Month(CrimeDate)= 1 ;
>>or Alltrim(Crimetype)= "B&E Business" and Month(CrimeDate)= 1 ;
>>or Alltrim(Crimetype)= "B&E Cabin" and Month(CrimeDate)= 1
>>
>
>Might you not simplify this as follows?
>
>
>count to JanCount for inlist(AllTrim(CrimeType), "B&E Garage", "B&E Home", ...);
>  and Month(CrimeDate) = 1)
>
Thanks Hilmar. I have done that and the error persists.
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform