Hi yvon,
How you pass the value really depends on what you are doing, one way to achieve it would be to pass it in when you make the method call e.g.
Code:
MsgBox " speed of boule on the floor = " & .GetVitesse(objEnv.G)
...
Function GetVitesse(g As Double) As Double
GetVitesse = Sqr(2 * g * mlHauteur)
End Function
HTH,
Chris