Compute and Suppress from an iPart table programatically |
Top Previous Next |
Here's how I read a Compute/Suppress setting from an iPart table:
// Get the "Suppress" or "Compute" value from the table // returns true if Suppressed bool GetSuppressedFromiPartTableRowCell (const UINT ikCol, CComPtr<iPartTableRow> piPartRow) { wchar_t szValue[_MAX_PATH] ; GetStringFromiPartTableRowCell (szValue,_countof(szValue),ikCol,piPartRow) ;
// Since Suppress = Sopprimi and Compute = Calcola this // compare will work in both English and Italian return (szValue[0] == L'S') ; }
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)