JADE is an advanced software platform that has an integrated software development environment, a language, an object manager, and a high performance database.


Instructions

  1. Select the code on the left by clicking and dragging.
  2. Copy the code to the clipboard (CTRL-C).
  3. Select all the code in the code window (CTRL-A).
  4. Paste the code from the clipboard (CTRL-V).
  5. Select the Methods | Compile Method command.
    The status line in the Class Browser displays
    «Compilation complete - no errors»
  6. Select the Jade | Execute it menu command.
    The status line will then display the message
    «Execution complete»

Troubleshooting

If your code did not compile, an error message displays on the status line. Click an error message to find out what to do.

Error 6050 - Cannot change name

Error 6090 - Cannot access protected property or method

Check Out the Borrowers?

The message «Execution complete» implies there are now two Borrower objects in the database.

Examine these Borrowers by inspecting the database,
then close the inspector windows by selecting the File | Close All menu command.

createBorrowers();

vars
    brw : Borrower;  // brw is a variable of type Borrower
                     // lowercase first letter for variable
                     // uppercase first letter for class

begin
    beginTransaction; // required for database changes

    // create a Borrower object and set its properties
    create brw;
    brw.name := "Jill Timpson";
    brw.address := "16 Radley Road, Bishopdale, Oxford";
    brw.memberNo := "H-1330651-4";

    // create another Borrower object and set properties
    create brw;
    brw.name := "Ben H Collins";
    brw.address := "53 Cliff Road, Sydenham, Oxford";
    brw.memberNo := "H-1040155-7";

    commitTransaction; // confirm update and release locks
end;

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Contents
 

For maximum reliability, security and performance of your JADE solution, JADE Care24 is our fully comprehensive systems management offering.