A more complete example that demonstrates this problem would help.
returning from a statement
You mean, a function?