Programming Guide |
Gets a string attribute of the current transaction and stores it
#include <tmusubs.h>int sm_tm_pcopy(int attribute, char *attr_value, int length);
attribute
- Specifies the string attribute of the current transaction to get with one of the constants shown in Table 5-20.
attr_value
- A string buffer where the specified attribute's value is copied.
length
- Specifies the maximum length of data to copy to
attr_value
, excluding theNULL
string terminator. Iflength
has a 0 or negative value, it is set to 255.
C only
sm_tm_pcopy
is used to obtain the current 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. This function stores the value to a user-defined buffer, and returns error information.Table 5-20 lists the constants, defined in
tmusubs.h
, that specify the string attributes to get with this function.
Data is only copied if no errors are encountered.
sm_tm_inquire, sm_tm_iset, sm_tm_pinquire, sm_tm_pset