This function creates integer collection with randomized numbers.
object.CreateIntCollection()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
Fill in the collection with randomized numbers and display them.
Dim aItemCount
Dim aMinValue
Dim aMaxValue
Dim aIntColl
Dim aValue
Dim aMessage
aItemCount = 7
aMinValue = 20
aMaxValue = 70
Set aIntColl = Profile.CreateIntCollection
for i = 1 to aItemCount
aValue = (aMaxvalue - aMinValue + 1) * Rnd + aMinValue
aIntColl.Add(aValue)
next
for i = 0 to aIntColl.Count - 1
aMessage = aMessage & vbNewLine & aIntColl.Item(i)
next
Profile.MsgBox(aMessage)