stekicar
Industrial
- Jul 25, 2006
- 20
What value extract function returns as in this example?
string_val = abcdef
ret_val=extract(string_val,1,7)
As you can see, extract function should give 7 strings long word but parameter is actually 6 strings long. Is it possible that extract func. returns NULL value?
How can I detect with IF statement the NULL value of ret_val parameter.
Something like this:
if (ret_val==NULL)
DO_THIS */ex.
else
DO_THAT */ex.
endif
string_val = abcdef
ret_val=extract(string_val,1,7)
As you can see, extract function should give 7 strings long word but parameter is actually 6 strings long. Is it possible that extract func. returns NULL value?
How can I detect with IF statement the NULL value of ret_val parameter.
Something like this:
if (ret_val==NULL)
DO_THIS */ex.
else
DO_THAT */ex.
endif