| View previous topic :: View next topic |
| Author |
Message |
Mark Fayard Guest
|
Posted: Wed Jul 02, 2003 6:33 pm Post subject: Help passing data |
|
|
I am developing a multi-tier (first time) system using delphi. I have all
the business logic residing on the server side. My problem is when I pass
integers into one of the functions and perform a division operation on them
it is expecting the return value to be extended. But the value I want to
return is the integer(rounded) portion of the result. If I use the rounded
function it passes back a zero to the client everytime. When I perform this
operation on the client side it is as a procedure and doesn't care that I'm
loading the result as an integer. But using a function on the server side
it does care. How do I get the function on the server side to pass back the
result of the division as an integer? Thanks.
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Wed Jul 02, 2003 10:42 pm Post subject: Re: Help passing data |
|
|
To divide the integer variable I by the integer varaiable J and get an
integer result K use:
K := I div J;
If you use I / J you will get an extended result.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
|