PreFab...Player...Documentation...Frontier...User's Guide...Chapter 5, Verbs...One Verb Per Page...

Player.getItemAttribute


Syntax

Player.getItemAttribute(theItem, theAttribute)


Parameters

theItem is either a name or ID number.

theAttribute is a named attribute.


Action

Gets the specified attribute of the item.


Returns

A string or number, depending on the attribute.


Examples

with Player « ", attributes" was required in 1.0x but is optional in 1.1
   getItemAttribute("OK", enabled)
with Player
   getItemAttribute(14, bounds) « some items don't have names


Errors

The item does not exist or is not enabled.

The attribute does not exist.


Notes



See Also

Player.getItemInfo
Player.itemExists
Player.getMenuAttribute
Player.getWindowAttribute
Player.setCompleteMatch
Player.outlineDialog


Keywords

query[12] customItems

| Top |


enableUserInput| Prev | Home | Next |getItemInfo

Updated on 2/5/97 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.