| TI Connect Manager X Scripting Interface Documentation | ||
coerce anything as a list of type class | TIco : ktra | ||
This script command causes the TI Connect Manager X application to translate or coerce the data in anything to a return value of something, as the specified type class. For example, coerce a TI-92Plus pic variable into a PICT image data object. The anything, contains an object descriptor containing the object(s) to be translated. The response to this event is the translated data, or an error reply indicating the reason for the failure in translation.
Examples of using this event are:
The reply to this event is a descriptor containing either a (possible list) of translated data, or an error reply. This event can take, as input, an AERecord, containing a calculator item and directory item (as received by the 'get' event when retrieving contents of a file from a device), and be given a coerce request to a 'best' type (as indicated above in the last example). In this instance, it returns an AERecord containing the original record, with an additional key delimited field ( computer record ), containing the calculator data coerced to its best representative type (normally either 'TEXT', or 'PICT'). | |||
15 April 2004 - slr |