Closing tables using Send operatorI had assumed the following are equivilent operations:
Close( dt, nosave );<BR />dt << Close( nosave );
But now find myself in a position where they don't produce the same results (the 2nd version using the Send operator doesn't close the table).
What's the difference?
Re: Closing tables using Send operatorI don't know. Close() has been a function of the data table, not part of a message protocol, since JMP 4 when JSL was first introduced. There are a few cases (only a few) where the same result can be accomplished by a function and sending a message. For example, obtaining a reference to the report layer of a platform p can use Report( p ) or it can use p << Report.
Re: Closing tables using Send operatorSo Close() was never intended to be sent to objects but it might happen to work? I've adopted a legacy script that closes tables exclusively via sending messages...
Re: Closing tables using Send operatorThe Close message can be sent to a several JSL objects, but not to data tables.
Data Table doesn't accept the <
dt = open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Close(); // nothing happens
Takeaway: The function Close() and the message <
HTH,
Melanie