User Tools

Site Tools


return_return_from_group_.htm
Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #RETURN (return from #GROUP) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

#RETURN( [ returnvalue ] )

blk2blue.jpg

#RETURN Immediately returns from the #GROUP.
returnvalue An expression containing the value to return to the calling statement. If omitted, an empty string ('') is returned.

The #RETURN statement immediately returns control to the statement following the #INSERT, #CALL, or #INVOKE that called the #GROUP, or returns the returnvalue to the CALL or INVOKE built-in procedures. If the #INSERT, #CALL, or #INVOKE that called the #GROUP are set to receive the returnvalue, the value is placed in the symbol named in the #INSERT, #CALL, or #INVOKE statement.

#RETURN is only valid in a #GROUP section.

Example:

#GROUP(%ProcessListGroup,%PassedControl)

 #FIX(%ScreenField,%PassedControl)

 #IF (%ScreenFieldType <;> 'LIST')

   #UNFIX(%ScreenField)

  #RETURN

 #ENDIF

See Also:     #GROUP ,#INSERT ,#CALL ,CALL ,#INVOKE ,INVOKE

return_return_from_group_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1