Difference between revisions of "Lua:getForm"
Jump to navigation
Jump to search
m (Correct the example to list all forms (it was missing the first one)) |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
== Examples == | == Examples == | ||
| − | + | <syntaxhighlight lang="lua" line> | |
| − | + | for i = 0, getFormCount() - 1 do | |
| − | + | local frm = getForm(i) | |
| − | + | print(frm.ClassName) | |
| − | + | print(frm.Caption) | |
| + | end | ||
| + | </syntaxhighlight> | ||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| − | + | {{Forms}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 19:54, 26 June 2026
function getForm(Index)
Returns the form at the specific index.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| Index | integer | The index of the form to get |
Examples[edit]
1 for i = 0, getFormCount() - 1 do
2 local frm = getForm(i)
3 print(frm.ClassName)
4 print(frm.Caption)
5 end