BertKerkhof Posted April 23, 2018 Posted April 23, 2018 I always liked to work with Clipper. Whit that Dbase compiler it was easy to extend array's and juggle with rows and columns. It is pleasant that this is also feasible in AutoIT. Many available functions operate on a single dimension array only. One of the advantages of the routines I published today, is that it is easy to retrieve and process a single array and restore it afterwards in multidimensional space. This reduces the need to double code for both one- and two dimensional situations. With strings you never run into an out-of-bound error. Whether you try copying a negative number of bytes or retrieve bytes from above the length of the string, elegantly a zero byte string is returned. Make a start with this new set of functions to experience the same user-friendly plan with array's. Once you have the hang of it, you will see that the use of lists-in-lists is more versatile than square 2D arrays. The module is named after a dutch chocolate maker. For the recursive visual effect, see: https://en.wikipedia.org/wiki/Droste_effect Build and comment on this basic starters set: https://github.com/BertKerkhof/aDrosteArray
Developers Jos Posted April 23, 2018 Developers Posted April 23, 2018 Nice! This probably is difficult to translate for none Dutch speaking members : ; aStringFindAll : Local $S = "De kapper kapt knap maar de knecht van de knappe kapper kapt knapper dan de knappe kapper kappen kan" MsgBox(64, "Positions in string of 'kapper'", rRecite(aStringFindAll($S, "kapper"), ", ")) Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Earthshine Posted April 23, 2018 Posted April 23, 2018 (edited) nice work. I would like that chocolate too. edit, this is REALLY cool stuff. Thanks! Edited April 23, 2018 by Earthshine My resources are limited. You must ask the right questions
czardas Posted July 15, 2018 Posted July 15, 2018 (edited) Interesting example. I sometimes create lists of executable strings for various purposes - similar to this. It is possible to extend the 64 dimension limit using these techniques, but I can't imagine why anyone would do that. Good work. Edited July 15, 2018 by czardas operator64 ArrayWorkshop
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now