Programming Guide |
Sets the value of a string transaction attribute
#include <tmusubs.h>int sm_tm_pset(int attribute, char *value);
attribute
- Specifies the string attribute of the current transaction to change with one of the constants shown below.
value
attribute
's new value.
sm_tm_pset
changes the value of a string attribute of the current transaction. This includes not only data in the current transaction structure itself, but also data that can be found indirectly, such as data relating to the current table view.Table 5-21 describes the constants, defined in
tmusubs.h
, that specify the attributes to change with this function.
void set_msg_text(msg);
char *msg;
{
/*
* Set the sm_tm_command exit message, possibly overriding
* any previously set message.
*/
sm_tm_pset(TM_MSG_TEXT, msg);
}
sm_tm_inquire, sm_tm_pinquire, sm_tm_pcopy, sm_tm_pset