Welcome Guest, Not a member yet? Register   Sign In
Help me..
#9

Ah, ok, it is, and I would not have a clunky solution like that in my code.

But I got the impression from the question that he was using an external system to generate the array, that I guessed he was having trouble with as Diederik's answer was good.

So, if you have a messy array, and need it in another format, and was not sure how to do it, or alter how you are getting the array in the first place, I think my answer is a good possible solution for the problem described.

Yes it is a lot of code, with flags, little error checking etc. But if a rejig of an array gets you out of a tricky corner how else can you do it.

Anyway, I think 'horrible' made me think you thought I had done something wrong in the code. Perhaps next time you call someones code 'horrible' you could either temper your vocabulary or add some qualification to it.

As I said, was just offering an answer to someone who said they were stuck, in the hope of helping, not proposing super efficient power coding as an entry into a coding competition.

Best wishes,

Paul :-(
Reply


Messages In This Thread
Help me.. - by ngangchill - 01-04-2016, 01:51 PM
RE: Help me.. - by Diederik - 01-04-2016, 03:52 PM
RE: Help me.. - by Aendawan - 01-04-2016, 04:01 PM
RE: Help me.. - by PaulD - 01-05-2016, 06:50 AM
RE: Help me.. - by mr_pablo - 01-05-2016, 08:30 AM
RE: Help me.. - by ngangchill - 01-05-2016, 08:49 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:57 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:35 AM
RE: Help me.. - by mr_pablo - 01-05-2016, 08:43 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:55 AM
RE: Help me.. - by includebeer - 01-09-2016, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB