CFMutableArrayMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFMutableArrayMBS class.

CFMutableArrayMBS.Append(value as CFObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Appends an item to this array.
Example
dim a as CFMutableArrayMBS

a=NewCFMutableArrayMBS

a.Append NewCFStringMBS("Hello")

MsgBox str(a.Count)

MsgBox CFStringMBS(a.Item(0)).str

CFMutableArrayMBS.AppendArray(sourcearray as CFArrayMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Adds the values from an array to another array.

The whole array should be copied.

See also:

CFMutableArrayMBS.AppendArray(sourcearray as CFArrayMBS,min as Integer,max as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Adds the values from an array to another array.

The whole array should be copied.
Min and Max are the range to be copied. Make sure they are correct indexes!

See also:

CFMutableArrayMBS.Exchange(index1 as Integer,index2 as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Exchanges the values at two indices of the array.

Make sure indexes are in range between 0 and count-1.

CFMutableArrayMBS.Insert(index as Integer,value as CFObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Inserts an item to this array.

Make sure index is in range between 0 and count.
If Index=count then this function does like append.

CFMutableArrayMBS.Remove(index as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Removes the value with the given index from the array.

Make sure index is in range between 0 and count-1.

CFMutableArrayMBS.RemoveAll

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Removes all the values from the array, making it empty.

CFMutableArrayMBS.SetValue(index as Integer,value as CFObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Changes the value with the given index in the array.

The items on this page are in the following plugins: MBS MacCF Plugin.


💬 Ask a question or report a problem