QMDel() |
![]() ![]() ![]() |
The QMDel() function deletes a field, value or subvalue from a dynamic array.
Format
where
The QMDel() function returns a new dynamic array with the given field, value or subvalue deleted. If the required item is not found, the original string is returned unchanged.
Note that in the C API library, a statement of the form rec = QMDel(rec, 2, 1, 0) will return a pointer to a newly allocated memory area, overwriting the rec pointer. The old memory is not freed by this call and it is therefore necessary to retain a pointer to the original rec string so that it can be freed later.
|