Hi i have the following method on my objects obj
BOOL obj::CloseRecord() const
{
//Do something
//Empty the member variable m_Id (is a CString)
static_cast<CString>(m_Id) = ""; //<--Doesnt work
//Empty set the member variable m_Item = 0
static_cast<int>(m_Item) = 0; //<---Works fine
}
The var m_Id is never set to "", but continues to have the id value.
How can i clear the m_Id inside a const method?
Thank you
BOOL obj::CloseRecord() const
{
//Do something
//Empty the member variable m_Id (is a CString)
static_cast<CString>(m_Id) = ""; //<--Doesnt work
//Empty set the member variable m_Item = 0
static_cast<int>(m_Item) = 0; //<---Works fine
}
The var m_Id is never set to "", but continues to have the id value.
How can i clear the m_Id inside a const method?
Thank you