hello,

How can I call individual parts of this function? I would like to call return Gallons and decPaintCostperRoom as individual entities with a single function.

Thank you for your time

Code:
 Private Function Gallons(ByRef intSquareFeet As Integer, ByRef decPaintCost As Decimal) As Decimal

        Dim decGallons As Decimal
        Dim decPaintCostPerRoom As Decimal

        'gallons is averaged by 115
        decGallons = intSquareFeet / 115
        decGallons = Math.Ceiling(decGallons)


        decPaintCostPerRoom = decPaintCost * decGallons


        Return decGallons
        Return decPaintCostPerRoom