C++ application testing with VBScript, got a CString, how to cope with it?
- 9 years ago
Are you sure that GetStyleRowCol() is the correct method and the parameters are correct? Can you try GetValueRowCol(row, col) with 1-based indexes? It works in the sample app I have. (But I have no experience with Stingray grids, so I don't really know which method is more "correct".)
scambias wrote:
that attribute is unfortunately empty.
Most likely the string is actually empty. Are your method parameters valid?
scambias wrote:
But I know that the variable is still a CString.
How comes the GetLength() called on it gives an error?
There're some limitations on what native methods/properties are available. It might be that the CString::GetLength method is not included in the app's debug info. Is GetLength listed among the methods of your CString when you inspect it?
As an alternative, the Len function should work: Len(cellContent.m_pszData)