db.defined

Syntax db.defined (f, path)

Params f is a filespec or path string of a Frontier object database file that has been opened with db.open.

path is a valid UserTalk address string, indicating the location in the database whose existence you wish to determine.

Action Determines whether or not a value exists in the location indicated by path.

Returns True if path is a valid address of an existing object in the database, false otherwise.

Examples db.defined ("System:Frontier:old.root", "examples.age")

   » true

db.defined ("System:Frontier:old.root", "examples.[\"doesn't exist"]")

   » false

Notes The database file specified in the parameter "f" must be opened using db.open before calling this verb.

path can be a full or partial database address; the paths table of the target database is used to interpret it.

db.defined (f, path) is equivalent to defined (address (path)^) when referring to Frontier's current object database.

See Also db.open

defined

Discuss