msgWrites a message to the message window. Syntaxvoid msg(message); string message Description
The message string is appended to a global message list and displayed in the message window with a list_view2(). ExampleThe following code is in the update trigger of the accession window. It formats a TDT into a memory list using values from the window fields. At the same time, it writes the TDT to the message window so the user can review it before committing to Thor. ... list tdt_list;
msg(" ");
/* _______________________________ MAKE TDT __________________ */
if (list_stat(p.wl) in (item_insert,item_update,item_delete,item_purge)){
msg("Creating new TDT:");
tdt_list= list_open("2006",100,"TDT" ); /* format TDT */
list_mod(tdt_list,1,"$SMI<"^^p.smi_access^^">"); /* SMILES */
msg(" $SMI<"^^p.smi_access^^">" );
list_mod(tdt_list,1,"$WRNO<"^^p.wrno^^">"); /* wrno */
msg(" $WRNO<" ^^p.wrno^^">" );
list_mod(tdt_list,1,"AMW<"^^p.mw^^">"); /* mw */
msg(" AMW<" ^^p.mw^^">" );
list_mod(tdt_list,1,"F<"^^p.mf^^">"); /* mf */
msg(" F<"^^p.mf^^">");
list_mod(tdt_list,1,"$CAS<"^^p.cas^^">"); /* cas */
msg(" $CAS<"^^p.cas^^">");
...
Updated 19 May 1999. Copyright DataAspects Corp. 1998-1999 |