Skip to main content


In this tutorial, I’m going to show you how to use constants. In the real world, there lots of value that never changes like a Day it is always a 24 hour, and a sqaure has always four equal sides. This value remains constant. It refers to a fixed value that the program may not alter during its execution. The constants are just like regular variables except that their values cannot bit modified after their definition.

Constants Declaration

To declare constant using visual basic, use “Const” statement. This statement is used at module, class, structure, procedure, or block level for use in


Submitted byhellow kitty (not verified)on Wed, 06/14/2017 - 10:49

very nice, but pi value = 13.14159 :D just noticed

Add new comment