Call this member function to retrieve field data in the current record represented as a Unicode string. For the function that does not have length parameter result parameterrepresents a buffer long enough to hold zero-terminated copy of the field value. For getChars function withlength parameter, if length is less than or equal to the length of result, a null character is not appended automatically to the copied string. If length is greater than the length of result, the destination string is padded with null characters up to length value. Throws an exception when type conversion is not possible. Use this function for connections in Unicode mode only. Example
wchar_t* dName;
wchar_t buffer[100];
dName = dataset.field("DName").getWChars();
dataset.field("DName").getWChars(buffer);
See Also