Hello
how to use setOptions ? (using CE 7.2) I tried many variants but failed
mr.setOptions(['moHideChildren','moAllowManualCollapseAndExpand','moManualExpandCollapse'])
attempt to call a nil value (field 'setOptions')
mr.setOptions('[moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse]')
attempt to call a nil value (field 'setOptions')
mr.setOptions([moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse])
unexpected symbol near '['
Thx
MemoryRecord.setOptions
Re: MemoryRecord.setOptions
Use it like thissanitka wrote: ↑Thu Apr 01, 2021 12:52 amHello
how to use setOptions ? (using CE 7.2) I tried many variants but failed
mr.setOptions(['moHideChildren','moAllowManualCollapseAndExpand','moManualExpandCollapse'])
attempt to call a nil value (field 'setOptions')
mr.setOptions('[moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse]')
attempt to call a nil value (field 'setOptions')
mr.setOptions([moHideChildren,moAllowManualCollapseAndExpand,moManualExpandCollapse])
unexpected symbol near '['
Thx
Code: Select all
mr = AddressList.createMemoryRecord()
mr.Description = "Group 01"
mr.isGroupHeader = true
mr.Options = '[moManualExpandCollapse , moAllowManualCollapseAndExpand]' --moHideChildren/moActivateChildrenAsWell/moDeactivateChildrenAsWell/moRecursiveSetValue/moAllowManualCollapseAndExpand/moManualExpandCollapse
mr2 = AddressList.createMemoryRecord()
mr2.Description = "Group 02"
mr2.isGroupHeader = true
mr2.Options = '[moManualExpandCollapse , moAllowManualCollapseAndExpand]' --moHideChildren/moActivateChildrenAsWell/moDeactivateChildrenAsWell/moRecursiveSetValue/moAllowManualCollapseAndExpand/moManualExpandCollapse
mr2.appendToEntry(mr) --or mr2.appendToEntry(getAddressList().getMemoryRecordByDescription("Groupe 01"))
Who is online
Users browsing this forum: No registered users