CPStrInsert (LabVIEW Manager Function)

MgErr CPStrInsert(s1h, s2, index);

Purpose

Inserts a new Pascal string before the index numbered Pascal string in a concatenated list of Pascal strings. If index is greater than or equal to the number of strings in the list, this function places the new string at the end of the list. The function resizes the list to make room for the new string.

Parameters

Name Type Description
s1h CPStrHandle Handle to a concatenated list of Pascal strings.
s2 PStr Pointer to a Pascal string.
index int32 Position you want the new Pascal string to have in the list of Pascal strings, with 0 as the first string.

Return Value

MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.

Value Corresponding Error Code or Description
noErrNo error.
mFullErr2