Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The biggest mistake of the season :)
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01124333
Message ID:
01124422
Vues:
10
>Which one of 17 I see in your code?
>
<g> Can you list all of them, please?

I was referring to re-setting cProblemText every time. E.g. it should have been
.cProblemText = IIF(lnPayment_Received > 0, ;
IIF(!EMPTY(.cProblemText), .cProblemText + CHR(13) + CHR(10), "") + ;
ALLTRIM(STR(lnPayment_Received)) + " accounts have recent payments", .cProblemText)




>>
>>So stupid of me:
>>
>>.cProblemText = IIF(lnPayment_Arrangement > 0, ;
>>ALLTRIM(STR(lnPayment_Arrangement)) + 	" accounts have payment arrangements","")
>>.cProblemText = IIF(lnPayment_Received > 0, ;
>>IIF(!EMPTY(.cProblemText), .cProblemText + CHR(13) + CHR(10), "") + ;
>>ALLTRIM(STR(lnPayment_Received)) + " accounts have recent payments", "")
>>.cProblemText = IIF(lnBilled > 0, ;
>>IIF(!EMPTY(.cProblemText), .cProblemText + CHR(13) + CHR(10), "") + ;
>>ALLTRIM(STR(lnBilled)) + " accounts have been recently billed","")
>>
>>.cProblemText = IIF(lnProcess_Pending > 0, ;
>>IIF(!EMPTY(.cProblemText), .cProblemText + CHR(13) + CHR(10), "") + ;
>>ALLTRIM(STR(lnProcess_Pending)) + " accounts have some process pending","")
>>
>>.cProblemText = IIF(lnStatus_Changed > 0, ;
>>IIF(!EMPTY(.cProblemText), .cProblemText + CHR(13) + CHR(10), "") + ;
>>ALLTRIM(STR(lnStatus_Changed)) + " accounts have recent status changes","")
>>
>><g>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform