I would like to see a new addition to the library - Modules. Just like you get in vb etc. We have a bit of code in html, php etc in the variable that we can pass stuff to. This would be useful where, for example, I have a thumbnail routine. I have the same routine, but I need it in different places and as such have about 6 variations. If I could simply say run the routine and pass through the size, and maybe a true/false statement, or anything then I would only need one simple module to maintain.
e.g. in my code i have
in that module I have something like
I could then use the variables in my code. This would be great for my own usage, but I could also see a repository or swapshop type thing on the forum with lots of premade modules we can just drop in.
Thanks,
Paul.
e.g. in my code i have
Code:
thumbroutine(200,200,true)
Code:
module(height,width,border)
Thanks,
Paul.
Comment