Description:
Calculates the Percentvalue of a given value depending on a maximum value.
originally posted on dotnet-snippets.com
Calculates the Percentvalue of a given value depending on a maximum value.
Code
Public Function Percent(ByVal CurrVal As Long, ByVal MaxVal As Long) As Integer
Return Int(CurrVal / MaxVal * 100 + 0.5)
End Functionoriginally posted on dotnet-snippets.com
[img]http://i685.photobucket.com/albums/vv215/blackpearl4/THANKS.gif[/img]
If You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
PHP & .NET Contributor.



![[Image: Xtddh8V.png]](https://i.imgur.com/Xtddh8V.png)