Welcome to the Creatures Wiki! Log in and join the community.

READ

From Creatures Wiki
Revision as of 21:30, 26 January 2006 by Alexwatson (talk) (+cat (sorry))
Jump to navigation Jump to search

READ is a CAOS command for Catalogue access.

Usage

Syntax: READ tagname (string) offset (int)

Returns, as a string, the relevant field of the tagname tag in the catalogue. The first field has offset 0. tagname is case-sensitive.

Before querying with READ you should check the tag exists with REAQ tagname, and ensure that offset is in the range from 0 to (REAN tagname)-1. Otherwise the command fails with a Catalogue error.

If you are querying Agent Help it is preferable for most cases to use WILD instead of READ. This will provide fallback in case of undocumented agents.

Editnorn.png This stub could use more information.

See also