Ex001 - Persons

Background: GUI, NLI
Related: Examples, Ex005, Ex015, Ex060

Description:
This is a very basic example. It first creates a class named person and makes it an item of the tree root named db. It then creates two instances of the person class named john and mary. Subsequent examples will use higher-level functions.


NLI Script

(; Create a new thing (aka it))
(new)

(; Make it an item of tree root)
(set db item (it))

(; Name it with string person)
(set (it) name 'person)

(; Create a person named john)
(new)
(set person instance (it))
(set (it) name 'john)

(; Create a person named mary)
(new)
(set person instance (it))
(set (it) name 'mary)


(; Get john)
(; Tree highlights node for john)
(get john)

(; Get mary)
(; Tree highlights node for mary)
(get mary)

(; Get persons)
(; Tree highlights node for john 
   and a dialog box prompts user to continue. Click OK.
   Tree highlights node for mary 
   and a dialog box prompts user to continue. Click OK)
(get person instance *)

To Create Via GUI:

// Create the sequence "dir item person".
1. Select dir/item.
2. Create a thing ().
3. In new node, type 'person' and press enter.

// Create the sequence "person instance".
4. Select dir/item/system/item/database/instance.
5. Click "Relate as Next in New Sequence" ().
6. Select person.
7. Paste ().

// Create the sequence "person instance john".
8. Select dir/item/person/instance
9. Create a thing ().
10. In new node, type 'john' and press enter.

// Create the sequence "person instance mary".
11. Select person/instance.
12. Create a thing ().
13. In new node, type 'mary' and press enter.


Notes:
Additional persons can be added via the grid also.

Download Database:
Ex001.zip (20 KB)
The creation of rolex replica the watch is inspired by the retro and elegant money of rolex replica watches the brand's round watch. The chronograph is omega replica simple and stylish, with the line features of rolex replica uk the watch series.

CM ©2000-2007