View Single Post
 
Old 07-09-2018, 07:45 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,292
Default

input in repeatfind is not an array of string, but an array of array of string
your record properties are array of string (d..w)
And here you want multiple record properties, therefor array of recordproperty
Then your call should look like:
Code:
repeatFind([p.D,p.E,.....,p.W]);
But I'm not a big fan of the construction (records and pointer referencing). It looks a bit C to me, and in all your code you lose the advantage of OO and dynamics

And I have some issues with understanding the code. Find is normally a function, this will set a single property. So if you call it recursively in repeatFind (which is a function) it will keep overwriting self.prefix. Not sure what the output would be...
Reply With Quote