#RETURN (return from #GROUP) 

Top  Previous  Next

 

#RETURN( [ returnvalue ] )

#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