Tuesday, July 3, 2018

Methods Returning Data

When you right-click a class in the AOT and select New method, the method is
declared with the keyword Void. The
void (empty) specifies that the method
does not return a value.
When enabling a method to return a value, remember two things:
Replace the void with an Extended Data Type to specify the type of
data to receive from the method. Any kind of data can be returned
including table buffers and class objects.
Write return followed by a specification of the data that you want to
receive for any manipulation of the data.


1
2
3
4
5
private description getStringValue()  
{  
  description myTxt = "Text";  
  return myTxt;  
}  

Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...