Explorer_Add_SubItem_To_ListView

Examples


The Explorer_AddSubItem_To_ListView procedure adds one subitem to an item in the list view field of the SmartList window. It is used after a item has been added using the Explorer_AddItem_To_ListView procedure.

Syntax

Explorer_Add_SubItem_To_ListView, Index, Column, Display_String, Sort_Integer, Sort_Date, Sort_Currency, Sort_Time, Datatype, Result

Parameters

Index – A long integer that specifies the list view item to which the subitem is to be added. Use the value that was returned from the Explorer_AddItem_To_ListView procedure.

Column – An integer specifying the column number of the subitem being added to the list view.

Display_String – A string specifying the text that will be displayed in the column. The string will be displayed exactly as it’s supplied. Any formatting (such as for currency fields) must be done before the value is passed to this parameter.

Sort_Integer – For an integer subitem, the integer value that will be used for sorting the column.

Sort_Date – For a date subitem, the data value that will be used for sorting the column.

Sort_Currency – For a currency subitem, the currency value that will be used for sorting the column.

Sort_Time – For a time subitem, the time value that will be used for sorting the column.

Datatype – An integer specifying the underlying datatype of the subitem being added. The value corresponds to one of the following constants:

[spacer]

Datatype

Constant

Value

Integer

SMARTLIST_DATATYPE_INTEGER

1

Long integer

SMARTLIST_DATATYPE_LONG

2

Date

SMARTLIST_DATATYPE_DATE

3

Currency

SMARTLIST_DATATYPE_CURRENCY

4

String

SMARTLIST_DATATYPE_STRING

5

Boolean

SMARTLIST_DATATYPE_BOOLEAN

6

Drop-down list

SMARTLIST_DATATYPE_DDL

7

Account index

SMARTLIST_DATATYPE_ACCOUNTINDEX

8

Account number

SMARTLIST_DATATYPE_ACCOUNTNUMBER

9

Phone number

SMARTLIST_DATATYPE_PHONENUMBER

10

Social Security number

SMARTLIST_DATATYPE_SSN

11

Time

SMARTLIST_DATATYPE_TIME

12


Result – A returned boolean that indicates whether the subitem was added. The value true indicates it was added, while the value false indicates it was not.

Comments

Be sure this procedure is called so that it runs in the foreground.


Documentation Feedback