Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditionally Division
Message
From
22/07/2005 07:43:31
 
 
To
22/07/2005 07:32:01
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035053
Message ID:
01035058
Views:
15
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform