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.


The biggest plugin in space...