Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Dec 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP Functions for QuickPick Numbers (ASP)

    Hi
    Im looking for guidance in ASP. Sorry for posting here as understand here is for .NET expert.
    Anyone know a ASP functions that can performs let say:
    I have a any 4 digit numbers: lets takes 8476
    This function will display me with list of numbers that have those 4 digit above in different positions.
    eg: 4876,6748,7846,4786,8746....etc

    Thanks in advance
    Gan

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ASP Functions for QuickPick Numbers (ASP)

    Hi Gan,

    Welcome to Woody's Lounge!

    In order to accomplish this, you will need to write a custom function. I'm not aware of any existing function that will perform what you require.

    You may want to Google for "permutation" and VBScript (or whatever your desired coding language).

  3. #3
    Lounger
    Join Date
    Dec 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ASP Functions for QuickPick Numbers (ASP)

    Hi Mark,
    Hmm have tried to search for ideas of how the logic should work for this..
    but no luck [img]/forums/images/smilies/sad.gif[/img]

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ASP Functions for QuickPick Numbers (ASP)

    Are you using VBScript? Have you tried Googling for "VBScript permutation" as I suggested?

    The first link returned by Google points to an excellent discussion with a code sample that appears to do the trick. It's not very pretty and I would definitely clean it up a bit, but that's the essence of your request...

    Hope this helps!

Posting Permissions

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