Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally Division
Message
 
 
À
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:
01035056
Vues:
18
This message has been marked as the solution to the initial question of the thread.
nValue=524870
nOneLac = 100000
* # of complete parts
nLacCount = INT(nValue/nOneLac)
* The last part
nLastVal = nValue % nOneLac
? nLacCount, nLastVal 
>
>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
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform