GetNativeStringLength Function

Retrieves the string length from a native parameter string. This is useful for fetching the entire string using dynamic arrays.

int GetNativeStringLength(int param, int& length)

Parameters

int param

Parameter number, starting from 1.

int& length

Stores the length of the string.

Return Value

SP_ERROR_NONE on success, any other integer on failure.

Errors

Invalid parameter number or calling from a non-native function.

Notes

If this function succeeds, Get/SetNativeString will also succeed.