protected Option
The protected method option indicates that the method can be referenced only by methods in the same class or its subclasses.
Alternatively, you can specify this method option by using the Protected check box in the Jade Method Definition or External Method Definition dialog.
As the protected option is unset by default, you can use the methods access option on the Schema sheet of the Preferences dialog to change the default options for your schemas. (For details, see "
The following examples show methods with the protected option specified in the signature.
backupException(ex: Exception): Integer updating, protected; begin if ex.errorCode = JErr_DbFileNotFound or ex.errorCode = JErr_DbUserAbort then return Ex_Resume_Next; endif; // pass all other exceptions to the next handler in the chain return Ex_Pass_Back; end;
addressLine(line: Integer): String protected; // returns a specific line of an address vars addr1, addr2 : Integer; addressOut : String; char : Character; begin addr1 := 0; addr2 := 1; while addr1 < address.length do addr1 := addr1 + 1; char := address[addr1:1].Character; if char <> Cr and char <> Lf and char <> ',' then addressOut := addressOut & char; else if addr2 = line then break; else addressOut := ""; addr2 := addr2 + 1; endif; endif; endwhile; if addr2 = line then return addressOut.trimLeft; endif; end;