BEGGET
Declares a GET property procedure used to retrieve the value of a property.
BEGGET
Remarks
The BEGGET method within a BEGPROP block allows you to get the value of the property. A BEGGET routine must always end with an ENDGET.
Example
dclfld _FirstName *string INZ("")
dclfld _LastName *string INZ("")
BegProp Firstname *string Access( *public )
BegSet
_FirstName = *Propval
EndSet
BegGet
LeaveSR _FirstName
EndGet
EndProp
BegProp Lastname *string Access( *public )
BegSet NewValname( Lname )
_LastName = Lname
EndSet
BegGet
LeaveSR _LastName
EndGet
EndProp
// Read only property
BegProp FullName Type( *string ) Access( *public )
BegGet
LeaveSR Value( FirstName + " " + LastName )
EndGet
EndProp