MariusN Posted March 22, 2012 Author Share Posted March 22, 2012 (edited) Anyways thanks Melba....at the end i went and took your advice and used "RecFileListToArray.au3"...and as always...it WORKED! ...now just for the fine-tuning and get rid of all my "demo/test"-codes i had in my script, lol ( Had to fix about 1 000 000 errors in my code as well...due to all the changes and stuff i've tried...can you believe...) PS: for what its worth...I managed to create the same program "without" array's...and it worked 100%...Had to do a bit of "cleanup" and shift functions around to get the end-result...Reason why i stayed away from arrays? I want to do the coding myself...and just KNEW there was a way... Thanks for all the advice from you guys...i appreciate (Sorry for being "Grumpy" too...must be the frustration, lol ) Edited March 22, 2012 by MariusN Link to comment Share on other sites More sharing options...
Rogue5099 Posted March 22, 2012 Share Posted March 22, 2012 It seems you don't understand Arrays and that's okay, I didn't grab the concept until I found it much easier than naming each individual variable. Re-writing the entire code "without" arrays, including Melba's Recursion is quite a task but I am glad you found your solution! MariusN 1 My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 22, 2012 Moderators Share Posted March 22, 2012 MariusN, If you recoded my UDF not to use arrays, I would be really interested in seeing the result! M23 Rogue5099 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MariusN Posted March 22, 2012 Author Share Posted March 22, 2012 (edited) MariusN,If you recoded my UDF not to use arrays, I would be really interested in seeing the result! M23I kept your "udf" as a backup and will use it in future programs ( still need to learn arrays, but i'm just to lazy...Its easier for me to just go ahead and figure the "sequence" out of what to do, lol )At the end i did the programming without your udf ( thanks for helping me still, i appreciate ), and just created a couple of "$Var's" and assigned certain 0 and 1's to it. Ie if $joker = 1 then or if $check = 0, etc etc....you'll catch my drift What i DID find out quite interesting...is after a certain function, just assign a $var to it ( ie $seek = 1 or $found = 1)...or if it CANT find something, add $find = 0...THIS way, when i get to a certain function, i just need to say :if $seek = 0 then, etc etc )...helped me a lot This is how my program looks ---> At the moment my COMPLETE program is 2123 line long ( thats including THIS module...quite a huge program ) Edited March 22, 2012 by MariusN Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 22, 2012 Moderators Share Posted March 22, 2012 MariusN,still need to learn arrays, but i'm just to lazyThey are an essential part of any coder's toolkit - trying to code without them is like having one arm tied behind your back. I would suggest an "anti-lazy" cure sometime soon! M23 MariusN 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MariusN Posted March 22, 2012 Author Share Posted March 22, 2012 (edited) MariusN,I would suggest an "anti-lazy" cure sometime soon! M23...lolThey are an essential part of any coder's toolkit - trying to code without them is like having one arm tied behind your back. M23...true...but THIS way...you learn the HARD way....and i believe this way is the best...when learning to program...Once i'm a BUFF...i'll start on arrays Edited March 22, 2012 by MariusN Link to comment Share on other sites More sharing options...
MilesAhead Posted March 22, 2012 Share Posted March 22, 2012 (edited) This thread at least prompted me to try Melba's function. Out of curiosity I did Explorer Property page on my downloads folder(which has a bunch of subfolders with files.) Then did my MD5Hash program which recursively computes hash for an entire folder, then Melba's function. They all said 776 files found. So that makes me believe Melba's function works correctly. Very nice for the toolbox. To the OP, I can see trying to avoid arrays in some languages where they are not real arrays but just a macro syntactic trick. But for languages with native array support it's a must. Could you possibly be a fugitive from assembly language? heh heh Edited March 22, 2012 by MilesAhead MariusN 1 My Freeware Page Link to comment Share on other sites More sharing options...
MariusN Posted March 23, 2012 Author Share Posted March 23, 2012 (edited) This thread at least prompted me to try Melba's function. Out of curiosity I did Explorer Property page on my downloads folder(which has a bunch of subfolders with files.) Then did my MD5Hash program which recursively computes hash for an entire folder, then Melba's function. They all said 776 files found. So that makes me believe Melba's function works correctly. Very nice for the toolbox. To the OP, I can see trying to avoid arrays in some languages where they are not real arrays but just a macro syntactic trick. But for languages with native array support it's a must. Could you possibly be a fugitive from assembly language? heh hehAs i DID had a look at Melma's UDF, its pretty easy to use it...why? Cause Malba has basically done ALL the coding FOR us...lolWell, i DID use Assembler in the past, and what i like about it is, its like comparing a MANUEL car with an AUTOMATIC car....ARRAYS to me is like "AUTOMATIC"...doing it yourself ( via a major lot of commands) is like a MANUEL car....YOU'RE IN CHARGE!... ...and believe you me...You then know a lot MORE about your programming too...as YOU did all the hard work Edited March 23, 2012 by MariusN Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 23, 2012 Moderators Share Posted March 23, 2012 MariusN, Melma, MalbaWhatever! its pretty easy to use [...] Cause Malba has basically done ALL the coding FOR usThat is the general idea behind UDFs. doing it yourself ( via a major lot of commands) is like [...]...YOU'RE IN CHARGEWhile I can see your point of view I do not really agree with it. I used to program a lot in assembler and used as much library code as I could. Why go to all the trouble of reinventing the wheel when you can just get in a car (to reuse your analogy)? Where I think we agree is that just blindly using someone else's code is not going to help you improve - where we differ is that I believe using that code and understanding how it works is very likely to make you a better coder in future, you seem to feel that you need to work everything out yourself and ignore other methods. Why not profit from seeing how others deal with the same problem - the way you have gone may not be optimal. And to return to arrays (and your analogy) - by refusing to use them you are not "IN CHARGE" of a manual car, you are struggling along in a kiddies pedal car. As I said earlier, arrays are an essential part of a coder's toolbox and you are really hobbling your code if you do not even try to understand and use them. But it is your life and your code - just make sure you enjoy both! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MilesAhead Posted March 23, 2012 Share Posted March 23, 2012 As i DID had a look at Melma's UDF, its pretty easy to use it...why? Cause Malba has basically done ALL the coding FOR us...lolWell, i DID use Assembler in the past, and what i like about it is, its like comparing a MANUEL car with an AUTOMATIC car....ARRAYS to me is like "AUTOMATIC"...doing it yourself ( via a major lot of commands) is like a MANUEL car....YOU'RE IN CHARGE!... ...and believe you me...You then know a lot MORE about your programming too...as YOU did all the hard work I was just kidding because I did Masm and Tasm myself back in Dos days. Also learned a bit of basic Vax Assembler. It's very similar to Intel 80x86 except there are no segment registers. 32 bit flat addressing. Vax had some funny ways of doing things. I remember if you called a function in Vax asm and the return address was not on a 4 byte boundary, it pushed the address of the 4 byte boundary preceding the return address. Then it stuck the 2 bits in a particular register. It added those 2 bits, if they were not zero, to the 4 byte boundary address to get the return address as it popped the stack. Talk about strange! I can't remember why it did that, but it did. My Freeware Page Link to comment Share on other sites More sharing options...
MilesAhead Posted March 23, 2012 Share Posted March 23, 2012 @Melba, I can fathom encountering someone who argues that OOP is just syntactic mumbo jumbo and you can do all the same stuff with pointers and jump tables. But I hardly thought I'd find somebody who says arrays are hooey!! Geez!! Even C had arrays! My Freeware Page Link to comment Share on other sites More sharing options...
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