How to create member functions
-
Hi All, how ot create a method some thing like this u have a class cls1 and i creaate a object and i need to see the method like this objCls1.Method1.Method() like this how to do ?? Loving Code, R. Senthil Kumaran
-
Hi All, how ot create a method some thing like this u have a class cls1 and i creaate a object and i need to see the method like this objCls1.Method1.Method() like this how to do ?? Loving Code, R. Senthil Kumaran
I'm sorry, I'm a little confused with your questions. Could you please clarify? ~javier lozano (blog)
-
I'm sorry, I'm a little confused with your questions. Could you please clarify? ~javier lozano (blog)
Hi Javier, What my question is I used a webservice which is used to send sms accross india http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia[^] and tried to create my own app for the same!! there i got raised with this question, when u r trying to send an SMS using a webmethod... SendSMSToIndia for retriving it's result the code is some thing like this lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; here i found .Status is comming after the webmethod SendSMSToIndia and its parameters. so i am curious to know how to code like this!! That what i mean objCls.Method1.Method() did u got me Please let me know how to do this am online in Yahoo IM senthilkumaranz@yahoo.com Loving Code, R. Senthil Kumaran
-
Hi Javier, What my question is I used a webservice which is used to send sms accross india http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia[^] and tried to create my own app for the same!! there i got raised with this question, when u r trying to send an SMS using a webmethod... SendSMSToIndia for retriving it's result the code is some thing like this lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; here i found .Status is comming after the webmethod SendSMSToIndia and its parameters. so i am curious to know how to code like this!! That what i mean objCls.Method1.Method() did u got me Please let me know how to do this am online in Yahoo IM senthilkumaranz@yahoo.com Loving Code, R. Senthil Kumaran
The line:
lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status;
is short hand for:SendSMSToIndiaResult result = objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text); lblStatus.Text= result.Status;
Since the methodSendSMSToIndia
returns an object, you can directly call any of the properties/methods of that object. It's just a little short-hand method. Glad to help! ~javier lozano (blog) -
The line:
lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status;
is short hand for:SendSMSToIndiaResult result = objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text); lblStatus.Text= result.Status;
Since the methodSendSMSToIndia
returns an object, you can directly call any of the properties/methods of that object. It's just a little short-hand method. Glad to help! ~javier lozano (blog)Thanks!! Got a bit cleared Loving Code, R. Senthil Kumaran