MultiDIMs and ArrayFind errors

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
user5274
Junior Coder
Posts: 43
Joined: Tue Aug 04, 2020 9:35 am

MultiDIMs and ArrayFind errors

Post by user5274 » Tue Feb 02, 2021 3:51 pm

The below script does not crash when ArrayFind finds a value, but does crash when it does NOT find a value.

Code: Select all

ArrayDim>PRIZECNT,6
Separate>0;0;0;0;0;0,;,PRIZECNT_1,integer
Separate>0;0;0;0;7;0,;,PRIZECNT_2,integer
Separate>0;0;0;0;0;0,;,PRIZECNT_3,integer
Separate>0;0;0;0;0;0,;,PRIZECNT_4,integer
Separate>0;0;0;0;0;0,;,PRIZECNT_5,integer
Separate>0;0;0;0;0;0,;,PRIZECNT_6,integer

Let>WW=2
ArrayFind>PRIZECNT_%WW%,7,FFF,0
MessageModal>FFF
//FFF returns 5, correct

Let>WW=3
ArrayFind>PRIZECNT_%WW%,7,FFF,0
//MS15 crashes/hangs here when it cant find '7' in PRIZECNT_3
MessageModal>FFF

user5274
Junior Coder
Posts: 43
Joined: Tue Aug 04, 2020 9:35 am

Re: MultiDIMs and ArrayFind errors

Post by user5274 » Wed Feb 03, 2021 7:03 am

Does someone have the link to the blog that talks about multidim arrays? i can't ever find those blogs, thanks.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: MultiDIMs and ArrayFind errors

Post by Dorian (MJT support) » Wed Feb 03, 2021 10:54 am

I can't seem to find a blog post on that either, but i have reported this to dev, as I'm experiencing the same issue.
Yes, we have a Custom Scripting Service. Message me or go here

user5274
Junior Coder
Posts: 43
Joined: Tue Aug 04, 2020 9:35 am

Re: MultiDIMs and ArrayFind errors

Post by user5274 » Fri Feb 05, 2021 2:40 am

Thank you for pushing that to them.

I now also discovered this does not work either, whether by design or not:

Code: Select all

Let>WW=6
Separate>0;0;0;0;0;0,;,PRIZECNT_%WW%,integer
I thought i read a blog post or forum post talking about using %..% within commands, it was a feature added at one version, and I thought it said something to the effect where you could use it in all commands. I'm wrong obviously but i would still like to reread that post if you can find it, i just dont know the search terms to use to find it. Thank you

user5274
Junior Coder
Posts: 43
Joined: Tue Aug 04, 2020 9:35 am

Re: MultiDIMs and ArrayFind errors

Post by user5274 » Fri Feb 05, 2021 2:50 am

Workaround for Separate shortcommings:

Code: Select all

Separate>0;0;0;0;0;0,;,THISARRAY,integer
Let>WW=3
ArrayCopy>THISARRAY,,PRIZECNT_%WW%
ArrayCopy expectedly copies THISARRAY to PRIZECNT_3_n

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: MultiDIMs and ArrayFind errors

Post by Dorian (MJT support) » Fri Feb 19, 2021 10:30 am

This has been fixed in dev and will be in an upcoming update.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: MultiDIMs and ArrayFind errors

Post by Dorian (MJT support) » Tue Feb 23, 2021 2:20 pm

This was released today. V15.0.17. Version History.
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts