| View previous topic :: View next topic |
| Author |
Message |
LF2005 Newbie cheater
Reputation: 0
Joined: 03 Apr 2014 Posts: 16
|
Posted: Sun Jul 16, 2023 7:39 am Post subject: how can I add the moHideChildren option to an entry |
|
|
I really tried to find how to do it , got almost nothing
aone page seemed to say I should do something like this:
| Code: | rec.Options[moHideChildren]
| but that doesn't work
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Sun Jul 16, 2023 8:18 am Post subject: |
|
|
You can do it like this without affecting the other applied options:
| Code: |
local script_name = 'Group 1'
local mr = AddressList.MemoryRecord[script_name]
mr.options = (mr.options):gsub('%]', ',moHideChildren]')
|
|
|
| Back to top |
|
 |
LF2005 Newbie cheater
Reputation: 0
Joined: 03 Apr 2014 Posts: 16
|
Posted: Sun Jul 16, 2023 12:45 pm Post subject: |
|
|
| LeFiXER wrote: | You can do it like this without affecting the other applied options:
| Code: |
local script_name = 'Group 1'
local mr = AddressList.MemoryRecord[script_name]
mr.options = (mr.options):gsub('%]', ',moHideChildren]')
|
|
I had a little hard time to adapt the code to my case but I have manage
| Code: | | rec.Options = (rec.Options):gsub('%]', ',moHideChildren]') |
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Sun Jul 16, 2023 12:49 pm Post subject: |
|
|
| LF2005 wrote: |
I had a little hard time to adapt the code to my case but I have manage
| Code: | | rec.Options = (rec.Options):gsub('%]', ',moHideChildren]') |
|
I provided an example to show how it works. But you used it to fit your scenario which is what matters. I would advise that you not struggle in future, you can just ask for clarification. It's how we all learn, by understanding what's going on.
|
|
| Back to top |
|
 |
|