Difference between revisions of "Lua:getPropertyList"
Jump to navigation
Jump to search
(Created page with "getPropertyList(class) : Returns a stringlist object containing all the published properties of the specified class (free the list when done) (Note, not all classed with prope...") |
m (Added alternative example) |
||
Line 1: | Line 1: | ||
getPropertyList(class) : Returns a stringlist object containing all the published properties of the specified class (free the list when done) (Note, not all classed with properties have 'published' properties. E.g: stringlist) | getPropertyList(class) : Returns a stringlist object containing all the published properties of the specified class (free the list when done) (Note, not all classed with properties have 'published' properties. E.g: stringlist) | ||
+ | Example 1: | ||
<pre> | <pre> | ||
r = getPropertyList(getInternet()) | r = getPropertyList(getInternet()) | ||
Line 7: | Line 8: | ||
print( r[i] ) | print( r[i] ) | ||
end | end | ||
+ | </pre> | ||
+ | |||
+ | Example 2: | ||
+ | <pre> | ||
+ | propertyList = getPropertyList(class) | ||
+ | |||
+ | print(propertyList.Text) | ||
+ | |||
+ | propertyList.destroy() | ||
+ | propertyList = nil | ||
</pre> | </pre> |
Latest revision as of 09:09, 5 October 2022
getPropertyList(class) : Returns a stringlist object containing all the published properties of the specified class (free the list when done) (Note, not all classed with properties have 'published' properties. E.g: stringlist)
Example 1:
r = getPropertyList(getInternet()) for i=0, r.Count-1, 1 do print( r[i] ) end
Example 2:
propertyList = getPropertyList(class) print(propertyList.Text) propertyList.destroy() propertyList = nil