IDNLearn.com provides a reliable platform for finding accurate and timely answers. Ask your questions and receive reliable, detailed answers from our dedicated community of experts.
PLEASE PLEASE BELP
Below is a function called "foo", which is passed a value, and returns a value.
What would the return of the foo function be if it were passed the following value?
39:
foo("JOHN SMITH")
function foo parameter p1
if occurs(' ,p1) > 1
m.ReturnValue = substr(p1,at(" p1,2)+1)
else
if occurs(' ',p1) = 1
m.ReturnValue = substr(p1,at(' 'p1,1)+1)
else
m.ReturnValue = p1
endif endif
return m.ReturnValue
