Lua:createFormFromStream
Jump to navigation
Jump to search
Creates a CEForm from a stream containing a form definition.
The stream must contain a valid CE/LCL form definition and be positioned at its beginning.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | Stream containing the form definition. |
Returns[edit]
CEForm — The form created from the stream.
Examples[edit]
1 local stream = createMemoryStream()
2 stream.loadFromFile("C:\\MyTrainer\\layout.frm")
3 local form = createFormFromStream(stream)