Search:     Advanced search

function ItemProperty(ItemID, Property)

Article ID: 324
Last updated: 24 Sep, 2010
Views: 1159
Posted: 30 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

 Description:

Returns the value (formula) of a property.

Notes:

Parameters

ItemID (This is the ID of the item you are accessing the properties of, such as CurrentItem, CurrentTab.)

Property (This is a string of the name of the property you wish to read, such as "Qty", "Price Each", "Price Total", some "system" values can be "Name", "Color", "Item #."  The value returned is the formula of the property. Use ItemPropertyResult to retrieve the calcuated result.)

This example would return the value (fromula) of the Qty Property.  Copy and paste the code into a new PlanSwift script.


Pascal Example:

ItemProperty(CurrentItem, 'Qty');

Visual Basic Example:

ItemProperty(CurrentItem, "Qty")


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
Item Property Routines     Item Routines