BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help passing data

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Mark Fayard
Guest





PostPosted: Wed Jul 02, 2003 6:33 pm    Post subject: Help passing data Reply with quote



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





PostPosted: Wed Jul 02, 2003 10:42 pm    Post subject: Re: Help passing data Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.