AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code

◆ Put() [10/31]

void Arg::Put ( const char *  name,
const long  slen,
const long  dim,
const unsigned  index,
const char *  data,
StatusType *const  status 
)
inline

Insert an 1D string array element.

The named item is created in the current structure if it does not already exist (array of strings) and the specified value inserted.

This does not convert items like the other Arg routines - if the item already exists it must be at least as long as required and of the same type.

See also
ArgPut1DArraySElem()
Parameters
nameThe name of the item within the SDS structure.
slenNumber of items in each string, including null terminator. If array does not already exist, it will be created with this number of characters in each string. If it does exist, it must have at least this number of characters in each string. If zero, use length of data including null terminator.
dimNumber of elements in array. If array does not already exist, it will be created with this number of elements. If it does exist, it must have at least this number of elements. If zero, use presume index+1.
indexThe index to the item within the SDS structure.
dataThe data item to be inserted.
statusInherited status.