// Method to retrieve a property of the object qlong JsonFastWriter::getProperty( tThreadData* pThreadData ) { EXTfldval fValReturn; qlong propID = ECOgetId( pThreadData->mEci ); switch( propID ) { case cPropertyMyProperty: fValReturn.setLong(myProperty); // Put property into return value ECOaddParam(pThreadData->mEci, &fValReturn); // Return to caller break; } return 1L; }
// get the value of a property qbool oFontDropDown::getProperty(qlong pPropID,EXTfldval &pGetValue,EXTCompInfo* pECI) { // most anum properties are managed by Omnis but some we need to do ourselves... switch (pPropID) { case oFDD_fontColumn: { pGetValue.setLong(mFontColumn); return true; }; break; default: return oBaseVisComponent::getProperty(pPropID, pGetValue, pECI); break; }; };
// Get an EXTfldval for a C++ long void OmnisTools::getEXTFldValFromLong(EXTfldval& fVal, long l) { fVal.setLong(static_cast<qlong>(l)); }
// Get an EXTfldval for a C++ int void OmnisTools::getEXTFldValFromInt(EXTfldval& fVal, int i) { fVal.setLong(static_cast<qlong>(i)); }