English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

ComputeRent(rentPerSqFoot, squareFeet, rent)
Does anyone know what it means?
Thanks

2007-04-14 01:01:54 · 6 answers · asked by Denim 1 in Computers & Internet Programming & Design

6 answers

You've already gotten good answers but ComputeRent is either a VB sub routine or function. Search for ComputeRent throughout the VB code and you will find that it is most likely being "called" at least once somewhere in the code.

The call to ComputeRent should look something like this:

' declare a variable that ComputeRent can use to
' store the value
dim varRent as Double

' The ComputeRent sub will multiply the first
' and second arguments and store the result
' in the third argument - varRent
ComputeRent 2, 800, varRent

' Display the rent to the user. In this example it would be 1600
MsgBox "Your rent will be " & varRent

2007-04-14 02:04:40 · answer #1 · answered by RG2000 2 · 0 0

The function name is "ComputeRent", this is used to compute the total rent. In the bracket, the value of 'rentPerSqFoot' and 'squareFeet' would be used to populate the 'rent'. Hope that this will help.

2007-04-14 08:10:34 · answer #2 · answered by Anonymous · 0 0

Sounds like its a call to a function.

somewhere else in the code there would have to be the input for the values of rentPerSqFoot, squareFeet,rent)

2007-04-14 08:08:47 · answer #3 · answered by Maria S 3 · 0 0

You have already gotten some good answers...

Beaware of the use of ByRef vs ByVal

A function returns a value while a subroutine does not return a value. If Intellesense doesn't show it as a function returning a data type then it is a subroutine call...

The ComputeRent(rentPerSqFoot, squareFee,Rent) has three arguments being passed to it. I would suspect that the Rent argument is the answer:

Rent = rentPerSqFoot * squareFeet

If the variables are being passed byRef (By Reference) then the Rent variable is being modified by the subroutine.
The original value of Rent will be overwritten with the answer.

OR

If the subroutine arguments are being passed byVal (By Value) the subroutine would have to modify a module level variable outside of the function to hold the answer

2007-04-14 09:32:13 · answer #4 · answered by MarkG 7 · 0 0

ComputerRent seems to be a function that receives 3 variables/arguments named rentPerSqFoot, squareFeet, rent
What the function does is not visible

2007-04-14 11:06:41 · answer #5 · answered by thadu 5 · 0 0

it's a funtion or procedure named ComputerRent and rentPerSqFoot, squareFeet, rent are it's parameters.
so use ComputerRent function and passed it's values.

2007-04-14 08:53:06 · answer #6 · answered by SiR 2 · 0 0

fedest.com, questions and answers