Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deserializes the packedClass parameter value to an instance of the InventCostClosing class.
Syntax
public boolean unpack(container packedClass)
Run On
Called
Parameters
- packedClass
Type: container
The container from which to deserialize the instance.
Return Value
Type: boolean
true if deserialization was successful; otherwise, false.
Remarks
When the isSwappingPrompt method returns true, you may have to unpack some prompt-related variables also.
Examples
These methods demonstrate the use of the unpack method. However, the example will not compile as it has to be run in the context of a class, form or other object.
public boolean unpack(container packedClass)
{
Version version = runbase::getVersion(packedClass);
#localmacro.list1 // This is the first list
transDate
#endmacro
switch (version)
{
case #CurrentVersion:
[version,#CurrentList] = packedClass;
break;
case 1:
[version,#list1] = packedClass;
default:
return false;
}
return true;
}