VSID.baliListsCollections.IntegersCarrier
-
Class Summary
Project ID | EAD868658E0D257F85258ADD00779AEB |
Version | |
Class ID | 47484989AE63FA6785258ADF005CDC69 |
Class Type | Base |
Attributes | |
-
-
Properties Detail
-
first (Get)
Public Property Get first As Integer |
Gets the first element in the carrier |
-
hasContent (Get)
Public Property Get hasContent As Boolean |
Flag indicating if the object has content |
-
JSON (Get)
Public Property Get JSON As String |
JSON representation of the object |
-
last (Get)
Public Property Get last As Integer |
Gets the last element in the carrier |
-
size (Get)
Public Property Get size As Long |
Number of elements in the object |
-
unique (Get)
Public Property Get unique As Variant |
Unique values carried by the object. Array of Integers containing the values of the object. If the object has no values then an array with a single empty Integer will be returned. |
-
values (Get)
Public Property Get values As Variant |
Values carried by the object. Array of Integers containing the values of the object. If the object has no values then an array with a single empty Integer will be returned. |
-
Methods Detail
-
contains
Public Function contains(source As Integer) As Boolean |
Flag indicating if the carrier contains a value |
idx | Argument | Data Type | Attributes |
1 | source | Integer | |
-
joinContent
Public Function joinContent(delimiter As String) As Single |
Concatenates the content IN FIFO ORDER into a single Integer using specified delimiter. |
idx | Argument | Data Type | Attributes |
1 | delimiter | String | |
-
pop
Public Function pop() As Integer |
Gets the top (last added) object from the stack, then removes it from the stack. |
|
Throws Exceptions |
---|
Message | Error Code | Comments |
MSG_OPERATION_PROHIBITED | 1003 |
-
writeToFile
Public Function writeToFile(target As String) As Long |
Writes Contents of object to a Text File. IMPORTANT NOTE: Existing files will be OVERWRITTEN! It is up to the calling code to pre-check for existence of file. |
idx | Argument | Data Type | Attributes |
1 | target | String | |
|
Throws Exceptions |
---|
Message | Error Code | Comments |
MSG_PARAMETER_BLANK | 1199 |
MSG_OPERATION_FAILED | 1000 |
-
yank
Public Function yank(source As Integer) As Boolean |
Removes the first found instnace of an Integer (if it exists) from the carrier. |
idx | Argument | Data Type | Attributes |
1 | source | Integer | |
-
clear
Public Sub clear() |
Clears the carrier |
-
clearDuplicates
Public Sub clearDuplicates() |
Clears duplicate elements from the object |
-
load
Public Sub load(source As Variant) |
Loads the object with content from source |
idx | Argument | Data Type | Attributes |
1 | source | Variant | |
|
Throws Exceptions |
---|
Message | Error Code | Comments |
MSG_PARAMETER_INVALID | 1195 |
-
push
Public Sub push(source As Integer) |
Adds a Integer to the top of the carrier stack |
idx | Argument | Data Type | Attributes |
1 | source | Integer | |
-
sort
Public Sub sort() |
Sorts the object's content in ascending order |
Copyright © HCL America, Inc. 1999, 2023. All Rights Reserved.