Specifying external function with AnimUnserializeOperation property
The AnimUnserializeOperation property converts a string to the value of an element.
About this task
The AnimUnserializeOperation property converts a string to the value of an element (the opposite of the Specifying external function with AnimSerializeOperation property property). Unserialize functions are used for event generation or operation invocation using the Animation toolbar to convert the string (received from the user) to the value of the event or operation before the event generation or operation invocation.
For example, your serialization operation might look like the following example:
char* myX2String(const Rec &f)
{
char* cS = new char[OutputStringLength];
/* conversion from the Rec type to string */
return (cS);
}
The unserialization operation would be:
Rec myString2X (char* C, Rec& T)
{
T = new Trc;
/* conversion of the string C to the Rec type */
delete C;
return (T);
}
The default for this property is an empty string.