I am trying out the new ArrayFind function but not having any luck. I am trying to use it on the results of a DBQuery and the only result I get is an index of -1.
Can the ArrayFind function only be used on single dimension arrays? Any other tricks to this new function?
Thanks,
AndrewT
ArrayFind
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: ArrayFind
ArrayFind works on single dimensional arrays only. DBQuery returns a muilti-dimensional array. You shouldn't need to array sort if you are using DBQuery - just set your sort order in the query (e.g. using the ORDER BY statement).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?