The line
Code:
list=new lisviewitem(dr.rows["empno"].tostring());
Code:
list=new lisviewitem(dr["empno"].tostring());
Hope now it will work.
list=new lisviewitem(dr.rows["empno"].tostring());
list=new lisviewitem(dr["empno"].tostring());
VB .NET If blnProvider Then ' If Provider is used strConn = "Provider=" & m_strProvider & ";Data Source=" & m_strServer & ";user id=" & m_strUserName & ";Password=" & m_strPwd & ";OLE DB Services=-2" & g_objShared.CMS_SEP Else ' If Driver is used
[B]C# .Net[/B] [DllImport("KERNEL32.DLL", EntryPoint = "GetPrivateProfileStringA", //BestFitMapping=true, //PreserveSig=false, //ThrowOnUnmappableChar=true, SetLastError = true, CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
//C# Code string[,] arrstr = new string[2, 3]; MessageBox.Show(arrstr.GetLength(0).ToString()); ---> displays 2 MessageBox.Show(arrstr.GetLength(1).ToString()); ---> displays 3
Leave a comment: