+ Reply to Thread
Results 1 to 5 of 5

optimise code -> subroutine to function (paramarray??!)

  1. #1
    Registered User
    Join Date
    08-27-2006
    Posts
    14

    optimise code -> subroutine to function (paramarray??!)

    a different one this time...

    Currently I do this:

    Please Login or Register  to view this content.
    I want to optimise this by turning it into a function; basically it extracts data from a table based on parameters...

    You will notice that each of the above conditions only use 2 parameters, however I would like to be able to pass the function any number... so what I'm thinking is basically:

    allBrick = functionname(table (search_one, search_two), (search_one, search_three, search_four))

    I guess that the function would return an array...

    I hope that this makes sense... knowing that what I am wanting to do is possible would be a great start!!

    Thanks
    Last edited by tozjerimiah; 11-01-2011 at 08:10 AM. Reason: title change

  2. #2
    Registered User
    Join Date
    08-27-2006
    Posts
    14

    Re: optimise code -> subroutine to function (paramarray??!)

    anyone? thx

  3. #3
    Registered User
    Join Date
    08-27-2006
    Posts
    14

    Re: optimise code -> subroutine to function (paramarray??!)

    or is what I want to do impossible/impractical ??

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: optimise code -> subroutine to function (paramarray??!)

    It's probably possible, but it is not entirely clear, to me at least.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,983

    Re: optimise code -> subroutine to function (paramarray??!)

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this, then please edit your first post to add links to any and all crossposts in other forums.
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1