May 1st, 1999, 03:44 AM
Hiya ppl :),
Could anyone tell me how to extract a memo field value from a COleVariant object? I could extract string, date, and numeric fields but I am stuck on how to get a memo field value?
For example, this is how I extract a string value from COleVariant:
CString TTableClass::fGetStringValue(CString sField)
{
COleVariant oVariant;
oVariant = moTable.GetFieldValue(sField);
return LPCSTR(oVariant.bstrVal);
}
But how to do it for memo field? And where to store it? Is there a specific object in MFC to store memo value? Or do I store it in CString object?
Thanks in advance,
Tatang
Could anyone tell me how to extract a memo field value from a COleVariant object? I could extract string, date, and numeric fields but I am stuck on how to get a memo field value?
For example, this is how I extract a string value from COleVariant:
CString TTableClass::fGetStringValue(CString sField)
{
COleVariant oVariant;
oVariant = moTable.GetFieldValue(sField);
return LPCSTR(oVariant.bstrVal);
}
But how to do it for memo field? And where to store it? Is there a specific object in MFC to store memo value? Or do I store it in CString object?
Thanks in advance,
Tatang