Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally Division
Message
De
22/07/2005 07:43:31
 
 
À
22/07/2005 07:32:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01035053
Message ID:
01035058
Vues:
14
Robert

INT( nValue / lnDivisor) will give you the number of parts to create, each containing lnDivisor
MOD( nValue, lnDivisor) will give you the remainder.

HTH

Terry

>Dear Experts
>
>I have a variable called nvalue=524870
>I want to divide it into parts as
>
>100000
>100000
>100000
>100000
>100000
>24870
>
>Every part will be consists on ONE LAC (100000) and remaining figure (24870) will be in next part.
>
>Then all parts, divisions, should be save in a temporary dbf.
>
>Please help
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform