Search:     Advanced search

Item Section Routines

Article ID: 72
Last updated: 22 Sep, 2010
Views: 1160
Posted: 12 Jun, 2008
by Ramsey M.
Updated: 22 Sep, 2010
by Murray D.

Here is a list of available item section routines:

procedure AddSection(ItemID)
Description

Creates a new section on the current estimating item.

 
Parameters
ItemID

This is the ID of the item you are adding a section to, such as CurrentItem.

 
Example
AddSection(CurrentItem)
 

This example would start recording a new section of the currently selected item.

 

procedure LockSection(ItemID, SectionIndex, Lock)

Description
Locks or unlocks a section.
 
Parameters
ItemID

This is the ID of the item you are accessing the section of, such as CurrentItem.

 
SectionIndex

This is a integer value of the index of the section, such as currentsection or 0.

 
Lock

Possible values: True, 1, False, 0.

 
Example

LockSection(CurrentItem, CurrentSection, True)

 

This example will lock the points of the current sections so that they cannot be adjusted.

 
function CurrentSection
Description

Returns the index of the current section.

 
Example
ShowMessage(CurrentSection)
 

This example would display a message showing what section number the currently selected section is.

 

Procedure DeleteSection(ItemID, SectionIndex)

Description
Deletes a section from an item.
 
Parameters
ItemID

This is the ID of the item you are accessing the section of, such as CurrentItem.

 
SectionIndex

This is a integer value for the index of the section, such as currentsection or 0.

 
Example

DeleteSection(CurrentItem, 0)

 

This example would delete the first section of the currently selected item.

 
function SectionCount(ItemID)
Description

Returns the number  of digitizer sections of the item.

 
Parameters
ItemID
 
Example
sections = SectionCount(CurrentItem)

ShowMessage("There are "& sections &" sections of this item")

 

This example will return a message displaying the number of sections of the currently selected item.

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