Hi EveryOne,
I tried Below Unpack method in my RunBase class.It shows a Syntax error.pls find out what i missed here…
public boolean unpack(container _packedClass)
{
Version version = RunBase::getVersion(_packedClass);
container packedQuery;
;
switch (version)
{
case #CurrentVersion:
[version,#CurrentList,packedQuery] = _packedClass;//Near #CurrentList shows a syntax error
if (packedQuery)
{
queryRun = new QueryRun(packedQuery);
}
break;
default :
return false;
}
return true;
}
can any one solve this problem…
Before compilation, #CurrentList macro is replaced by its content (defined in classDeclaration). You have something wrong there, but I obviously can’t tell you what, because you didn’t show it.
Hi ,
I solved above problems in unpack methods ,in pack method return only #currentVersion and QueryRun.Pack() values.so that unpack method getting an syntax error…
switch (version)
{
case (#Currentversion):
[version,packedQuery] = _packedClass;/////so here no using #CurrentList values
if (packedQuery)
{
queryRun = new QueryRun(packedQuery);
}
break;
default :
return false;
}
return true;
}