CPStrReplace (LabVIEW Manager Function)

MgErr CPStrReplace(s1h, s2, index);

Purpose

Replaces a Pascal string in a concatenated list of Pascal strings with a new Pascal string.

Parameters

Name Type Description
s1h CPStrHandle Handle to a concatenated list of Pascal strings.
s2 PStr Pointer to a Pascal string.
index int32 Number of the string you want to replace, 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