Show / Hide Table of Contents

Clear

Object and Type

Object  : FCList

Type     : Method

Prototype

Public Sub Clear()

Description

This method clears out the data in a list and resets the list to a pristine condition.  The list's property ItemType is reset and all data in the list is lost.

Example

This  example shows the creation of a list with integer data, clear and reused with string data.

JavaScript:

var aList;
aList = new ActiveXObject("FCFL.fclist");
aList.AppendItem(2, 3, 4, 5);
aList.Clear();

aList.AppendItem("This", "is", "some", "data");

Visual Basic:

Dim list As New FCList

list.AppendItem 2, 3, 4, 5

' list now has the numbers 2, 3, 4 and 5
list.Clear

' list now has no data
list.AppendItem "This", "is", "some", "data"

' list now has the strings "This", "is", "some", and "data"
Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.