Used in dynamic framing and allows string and byte length variables that delimit a message to be modified while messages are coming in, without making changes in the MSG-IDE’s Message Frame window. Frame objects update the value of one or more variables that have been inserted into a message frame.
Before using the reset() method,
the variables must have been declared in the data section of MSG-IDE’s
Define window, inserted into the message frame in MSG-IDE’s
Message Frame window, and initialized in clinit().
For more information on defining variables and inserting them into message frames, see the e-Biz Impact MSG-IDE Guide.
reset();
None.
........
string end_of_message;
........
clinit()
{
end_of_message = "ETX"; // initial value
........
}
// Frame object is called "msg1_frame" and defined as:
// All Data Until..
// V_string end_of_message
// .. end All Data Until
reset_frame_function()
{
if( condition )
{
end_of_message = "EOF"; // reset the string variable used // in msg1_frame;
msg1_frame.reset(); // msg1_frame will now look for "EOF" //to find the end of the incoming message
}
........
}
........
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |