Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Values Negatives
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Divers
Thread ID:
01074636
Message ID:
01074639
Vues:
11
I'm not sure what the problem is. If you want to change a sign of the number than
lns2= -lns
If it's not what you're looking for, please clarify.
Also what SCAN WHILE !EOF() is for? You don't need it if you want to scan all the reords in the cursor because it'll start SCAN from the current record. If you want SCAN to start from the current record in the cursor than it should be
SCAN REST
>Hi!!, I Have a Problem, I use the following code:
>
>
>SELECT C_Cumplimiento
>APPEND blank
>SELECT sumas	
>SCAN WHILE !EOF()
>  lns = (sumas.sumrcobranza10/IIF(sumas.sumpcobranza10 = 0,1,sumas.sumpcobranza10)*100)
>  lns2= (1 - lns)
>  SELECT C_Cumplimiento
>  replace concepto WITH "% CUMP. COBRANZA"
>  replace mes10    WITH lns2
>ENDSCAN
>
>
>in The Cursor Sumas sumrcobranza10 = 1357125.16 and sumpcobranza10 = 2588065.00 but the Value that Display is mes10 = -51.43, and This is not correct. If use:
> replace mes10 WITH lns the Value That Display is Correcto because Display 52.43 but my problem is when use lns2= (1 - lns) ..
>Why???
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform