public class |source

list

Internal v9 class used for managing JavaScript lists

Example:

let tmpList = new v9.list("tmpList");

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

fListBase: *[]

public

fName: *

public

Method Summary

Public Methods
public

ListDele(pEnum: number)

Deletes a single item from the list at a specified index

public

Binarily searches for a matching item within the list

public

ListItem(pEnum: number): *

Returns a single item from the list from a specified index

public

ListRows(): *

Returns the length of the list as a number

public

ListSert(pEnum: number, pItem: *)

Inserts an item into the list at a specified index

public

Prints up to five list key value pairs

public

Empties the list

Public Constructors

public constructor() source

Public Members

public fListBase: *[] source

public fName: * source

public fSert: number source

Public Methods

public ListDele(pEnum: number) source

Deletes a single item from the list at a specified index

Params:

NameTypeAttributeDescription
pEnumnumber

The zero-based location in the array from which to start removing elements (Why is this called pEnum?)

public ListFind(pItem: Object): number source

Binarily searches for a matching item within the list

Params:

NameTypeAttributeDescription
pItemObject

Return:

number

public ListItem(pEnum: number): * source

Returns a single item from the list from a specified index

Params:

NameTypeAttributeDescription
pEnumnumber

The zero-based location in the array from which to start removing elements (Why is this called pEnum?)

Return:

*

public ListRows(): * source

Returns the length of the list as a number

Return:

*

public ListSert(pEnum: number, pItem: *) source

Inserts an item into the list at a specified index

Params:

NameTypeAttributeDescription
pEnumnumber

The zero-based location in the array from which to start removing elements (Why is this called pEnum?)

pItem*

Element(s) to insert into the array in place of the deleted elements

public ListTalk() source

Prints up to five list key value pairs

public ListZero() source

Empties the list