invalid initialisation of reference of type 'double& ' Programming Software Development by newgurl … someone kindly suggest why it gives me error: "invalid initialisation of reference of type 'double&' from expression of type… variable Initialisation in JSP Programming Web Development by staneja … have never observed this behavior in core Java.Is variable initialisation is mandatory in JSP.FOllowing is code i am using… Object initialisation Programming Software Development by slanker70 … problem is how can I make a user set the initialisation? For example the user enter it's name and the… Framework initialisation error Programming Software Development by Arjun_Sarankulu … the exe Its gives the following exception [B].Net Framework Initialisation Error[/B] To run this application you must first install… Temporary variable during initialisation Programming Software Development by trantran …( /*temporary variable*/ S(23,3.14) ); } [/CODE] Questions: 1) During initialisation, is the temporary variable S(23,3.14) actually created… Re: 2D List initialisation problem Programming Software Development by Ketsuekiame …>>` as the types aren't implicitly compatible :) List initialisation by constructor is different to arrays. You have to remember… Initialisation of Variables Programming Software Development by sonia sardana Dim i as integer=10 dim j as integer=20 In the above two statements, y the error is coming...How can we initilase the values to the variables??? Re: Initialisation of Variables Programming Software Development by Ezzaral [code]Dim i as integer i=10[/code] Re: Initialisation of Variables Programming Software Development by sonia sardana hey tell me one more thing,Its necessary to declare dim i as integer within any procedure ex, Form_Load,Button_Click. We cannot declare it outside the procedure. Like Dim x As Integer x = 10 Dim y As Integer y = 10 Private Sub Command1_Click() Print x + y End Sub Re: Initialisation of Variables Programming Software Development by Jx_Man you can declare x and j in outside procedure or event but the assignment must be in procedure or event. ex : [code]Dim i,j as integer Private Sub Command1_Click() i = 10 j = 10 Print x + y End Sub[/code] Re: Initialisation of Variables Programming Software Development by choudhuryshouvi you can also use a variable without declaring the same. but for this you must turn off [B]"Required Variable Declaration"[/B] option. it is always recommended that you use variables after explicitly declaring them. this will help boosting up your program process by preventing memory wastage. one more thing, you can declare a variable in… Re: Initialisation of Variables Programming Software Development by Jx_Man sorry i wrong : [code]Dim x,y as integer Private Sub Command1_Click() x = 10 y = 10 Print x + y End Sub[/code] Re: Initialisation of Variables Programming Software Development by sonia sardana [COLOR="Green"]Hey Jx_Man[/COLOR], hey these are small errors even a fresher like me will be able to find it out. No Sorry. [COLOR="Green"] Hey Choudhary [/COLOR]See the prog below-- Private Sub Command2_Click() i = 20 j = 10 Print i - j End Sub Private Sub Command3_Click() Dim i As Integer Dim j As Integer i = 10… Re: Initialisation of Variables Programming Software Development by cometburn [Code=vb] Dim Total As Integer Private Function sum(a, b) Dim c As Integer sum = a + b End Function Private Sub Command1_Click() Dim a, b As Integer a = 1 b = 2 Total = sum(a, b) MsgBox Total End Sub [/Code] Re: Initialisation of Variables Programming Software Development by sonia sardana Private Sub Command1_Click() Dim a, b As Integer a = 3 b = 2 total = sum(a, b) MsgBox (total) End Sub Private Function sum(a, b) [COLOR="Red"]sum = a + b[/COLOR]End Function [COLOR="Green"]Prog. is working,But i have doubt the text, marked as red is not correct[/COLOR] Re: Initialisation of Variables Programming Software Development by QVeen72 Hi, A Function Declaration in VB6 is as : [code=vb] Private Function sum(a, b) As Double sum = a + b End Function [/code] Return is the same as Function Name..("Sum" in above case) Regards Veena Re: Initialisation of Variables Programming Software Development by choudhuryshouvi [QUOTE=sonia sardana;577620][COLOR="Green"]Hey Jx_Man[/COLOR], hey these are small errors even a fresher like me will be able to find it out. No Sorry. [COLOR="Green"] Hey Choudhary [/COLOR]See the prog below-- Private Sub Command2_Click() i = 20 j = 10 Print i - j End Sub Private Sub Command3_Click() Dim i As Integer… Re: Initialisation of Variables Programming Software Development by Jx_Man [QUOTE=Jx_Man;577608]sorry i wrong : [code]Dim x,y as integer Private Sub Command1_Click() x = 10 y = 10 Print x + y End Sub[/code][/QUOTE] hi sonia, i was tried my code and it giving a result 20 and not an error. Re: Initialisation of Variables Programming Software Development by november_pooh hi sonia, u just want to add 2 variable with value. don't make it harder. i was tried jx_man code and its working nice, shouvik and cometburn code working too. and always try to appreciated others comment. Re: Initialisation of Variables Programming Software Development by choudhuryshouvi Thank you very much for saying this - [QUOTE=november_pooh;577834]always try to appreciated others comment.[/QUOTE] regards Shouvik Re: Initialisation of Variables Programming Software Development by Jx_Man [QUOTE=november_pooh;577834]hi sonia, u just want to add 2 variable with value. don't make it harder. i was tried jx_man code and its working nice, shouvik and cometburn code working too. and always try to appreciated others comment.[/QUOTE] thanks friend...:) Re: Initialisation of Variables Programming Software Development by sonia sardana HI, it doesn't like that i will not appreciate Other Comments. I will Yaar. Sorry From My Side. I do not want to hurt Anybody or prove that he is wrong. i just give my Opinion what I knw. [COLOR="Green"]SORRY AGAIN.[/COLOR] Re: Initialisation of Variables Programming Software Development by sonia sardana I do not write dat there is error in Jx_man Code, i write , hey these are small errors even a fresher like me will be able to find it out. No Sorry. see Below-- [COLOR="Green"]cz He write Initially dim i as integer dim j as integer i=10 j=20 print x+ y[/COLOR] & he is saying sorry cz he write X+ Y. dats d reason. Re: Initialisation of Variables Programming Software Development by Jx_Man you didn't see my corrected post before. check post #6 -> i was posted for my corrected code. [QUOTE]Dim x,y as integer Private Sub Command1_Click() x = 10 y = 10 Print x + y End Sub[/QUOTE] Re: Initialisation of Variables Programming Software Development by choudhuryshouvi Hi sonia, what about my reply? did you read it? there i answered all those which you have noticed and told in my previous reply. here no one is trying to find your faults. we are all here to give you proper suggestions, tricks,tips and thats all. which reply will be good for you and which is not it completely depends upto you. there is no … Re: Initialisation of Variables Programming Software Development by sonia sardana [B][COLOR="Red"]hi JX_man dear friend, Again Sorry. Pls reply,if it is fine?[/COLOR][/B] Now about my problems-- If I check the checkbox Require variable declaration, It means that variables are necessary to declare. [COLOR="Red"]Right or Wrong?[/COLOR].. If we don't declare then the error comes. [B][COLOR="Red&… Re: Initialisation of Variables Programming Software Development by Jx_Man 1. if u didn't use option explicit you don't have to declare that variable and vb will execute that without any error. ex : u assign A with checkbox caption without a declared before A = Check1.Caption -> this operation executed by vb with none error but if you set option explicit on u must declare it cause u will get error. ex :… Re: Initialisation of Variables Programming Software Development by QVeen72 [QUOTE=sonia sardana;577998]If I check the checkbox Require variable declaration, It means that variables are necessary to declare. [COLOR="Red"]Right or Wrong?[/COLOR].. If we don't declare then the error comes. [/quote] Yes, It is a [COLOR="Red"]VB IDE[/color] setting. It is Form/ module wise. After Checking this in Tools … Re: Initialisation of Variables Programming Software Development by sonia sardana Hey, can anybody tell me that as in Vb.net ,Identifiers are there public ,private,protected. Variables declared as public can be accessed otuside the modules. In Vb,these are also valid or not. Re: Initialisation of Variables Programming Software Development by choudhuryshouvi vb doesn't support object orientation. that's why you can't use protected here. other identifiers private and public can be used here like the way you use in vb.net. public members can be accessed outside the module (both standard and form modules). even you can access an event of a form module from another form if the same is declared as public. …