Description:
Returns an object that contains all the items in a COLLECTION property.
Syntax:
of_getitemcollection (string as_name)
Argument |
Description |
as_name |
The name of the Collection property that you want to get the values for. |
Return Value:
Returns a reference to a n_cst_propertyitem object.
Usage:
n_cst_propertyitem lnv_item
Long ll_itemcount, ll_index
lnv_item = uo_1.of_GetItemCollection('Items')
ll_itemcount = lnv_item.of_getitemcount ()
FOR ll_index = 1 TO ll_itemcount
ls_prop += " - Item " + String(ll_index) + "~r~n"
//This property value will be the label that displays in the collection list
ls_prop += " - Text: " + lnv_item.of_GetProperty(ll_index, 'General', 'Text') + "~r~n"
ls_prop += " - Image: " + lnv_item.of_GetProperty(ll_index, 'General', 'Image') + "~r~n"
ls_prop += " - Tip Text: " + lnv_item.of_GetProperty(ll_index, 'General', 'Tip Text') + "~r~n"
ls_prop += " - Position: " + lnv_item.of_GetProperty(ll_index, 'General', 'Position') + "~r~n"
ls_prop += " - Enabled: " + lnv_item.of_GetProperty(ll_index, 'General', 'Enabled') + "~r~n"
ls_prop += " - Visible: " + lnv_item.of_GetProperty(ll_index, 'General', 'Visible') + "~r~n"
ls_prop += " - Display Text: " + lnv_item.of_GetProperty(ll_index, 'Style', 'Display Text') + "~r~n"
ls_prop += " - Toggle On: " + lnv_item.of_GetProperty(ll_index, 'Style', 'Toggle On') + "~r~n"
ls_prop += " - Background Color: " + lnv_item.of_GetProperty(ll_index, 'Style', 'Background Color') + "~r~n"
NEXT
Copyright © 2021 Werysoft Inc.