Code Writting in AX Report Design (Visual Studio)

Please i want to know how to declare variable and function in ax 2012 report design
give me many declaration example if possible please
thanks

85