Was this helpful?
Using the Return Statement
Use the return statement to return control in an application from a called frame or procedure to the frame or procedure that called it. You can pass a single value back to the calling frame at the same time. This value must match the data type of the field it is assigned to in the calling frame. You assign the called frame's return data type as you define the frame within ABF.
The example below returns a status code to the calling frame:
'End' = 
begin 
  return status; 
end
You can use a procedure that returns a value either as an expression or in an expression in a 4GL statement. The data type of the returned value must be compatible with the requirements of the expression.
Last modified date: 04/03/2024