//----------------------------------------------------------------------------- // getString //----------------------------------------------------------------------------- /// <summary> /// Get the data in the specified element in the data vector as a string /// value. /// </summary> /// <param name="uiElementNumber">Element number whose value is to be returned.</param> /// <returns> /// Element's value is returned as a string. /// </returns> public string getString( uint uiElementNumber) { RCODE rc; IntPtr pValue; string sValue; if ((rc = xflaim_DataVector_getString(m_pDataVector, uiElementNumber, out pValue)) != 0) { throw new XFlaimException(rc); } sValue = Marshal.PtrToStringUni(pValue); m_dbSystem.freeUnmanagedMem(pValue); return(sValue); }