MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / VariantGetValuesCount

Function VariantGetValuesCount

sourcecommon/utils.cpp:1258–1273  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1256}
1257//---------------------------------------------------------------------------
1258int VariantGetValuesCount(Variant v)
1259{
1260 int rv = 0;
1261 try
1262 {
1263 if( ! v.IsNull() )
1264 {
1265 rv = 1;
1266 if( v.IsArray() )
1267 rv = v.ArrayHighBound() - v.ArrayLowBound() + 1;
1268 }
1269 }
1270 catch(...)
1271 {}
1272 return rv;
1273}
1274//---------------------------------------------------------------------------
1275AnsiString FormatLastError(DWORD & error)
1276{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected