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