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)


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.


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


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