I would like to create two functions in VB.NET, one of which will calculate the area, and the other function will get the total price by multiplying the area by the user's entered price. Is there a way that I can include the output of one function inside another? My program will not compile currently, as I believe my logic is off. Thanks!
Public Function area(ByRef enteredLength As Double, ByRef enteredWidth As Double)
area = Val(enteredLength) * Val(enteredWidth)
End Function
Public Function totalPrice(ByRef enteredLength As Double, ByRef enteredWidth As Double)
totalPrice = Val(area) * Val(enteredPrice)
End Function