Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditionally Division
Message
 
 
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:
01035056
Views:
17
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform