DataRow question
-
Hi, I am new to c#, but I am a vb.net programmer. I have a line strLastServer = drowData["ServerName"].ToString; where strLastServer is declared string strLastServer = ""; I am getting an error on build: Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke the method? I looked at an article on this site which seemed to suggest what I was doing was OK, but.... What am I doing wrong?
-
Hi, I am new to c#, but I am a vb.net programmer. I have a line strLastServer = drowData["ServerName"].ToString; where strLastServer is declared string strLastServer = ""; I am getting an error on build: Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke the method? I looked at an article on this site which seemed to suggest what I was doing was OK, but.... What am I doing wrong?
In C# method calls should have parathesis/()... You will get used to it very soon :)
strLastServer = drowData["ServerName"].ToString();
Software - Bundle of bugs covered with features.
-
In C# method calls should have parathesis/()... You will get used to it very soon :)
strLastServer = drowData["ServerName"].ToString();
Software - Bundle of bugs covered with features.
So simple - and I have been racking my brain for hours. Thanks a million!