Throw a few ideas my way...

# Thread: Throw a few ideas my way...

1. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## Throw a few ideas my way...

To start off this is NOT an ASP question......if you still care, PLEASE read on.....<BR><BR><BR>This the the scenario i have <BR><BR><BR>1. Possible multiple borrowers (think upto 6)<BR>2. Can order joint credit reports (obviously if there is more than one borrower)<BR>3. At the most only TWO borrowers can be joint (as in if borrowers 2 is joint with borrower 4...no other borrower can be joint with either 2 or 4 but can be joint with other borrowers)<BR><BR>To achieve 3 there are many ways i can think of doing this but every way i come up with looks like some REALLY crappy micky mouse code. What could possible be worse than that.<BR><BR>Oh and if it matters the validations are thrown into a DLL<BR><BR><BR>

2. Senior Member
Join Date
Dec 1969
Posts
96,118

## Buy low, sell high! <eom>

.

3. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## It took you soo long to tell me THIS

and all this time i was doing it the other way and was wondering why i was never making any money.. :p<BR><BR><BR>and just to let you know i did NOT ask for advice....ONLY ideas :p<BR><BR><BR>

4. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## Oh and since you brought it up

i did pretty well SELLING high and buying low :)<BR><BR><BR>

5. Senior Member
Join Date
Dec 1969
Posts
96,118

## Permutations, in other word?

Or is it combinantions? Yeah, I guess it is. I only took one statistics course, and that was mumbledy-mumble years ago, so whaddya want.<BR><BR>Anyway, is this what you mean:<BR><BR>For i = 1 to BorrowerCount-1<BR>&nbsp; &nbsp; For j = i+1 to BorrowserCount<BR>&nbsp; &nbsp; &nbsp; &nbsp; Response.Write "combination " & i & " and " & j & "&#060;br/&#062;"<BR>&nbsp; &nbsp; Next<BR>Next<BR>

6. Senior Member
Join Date
Dec 1969
Posts
541

## Don't Eat Yellow Snow...

.

7. Senior Member
Join Date
Dec 1969
Posts
541

## What About an array

What about storing borrower pairs in an array...And if you find then don&#039;t let pair up...<BR><BR>Bill&#039;s right...It is a permutation...Order does not matter...(2,4) same as (4,2)...<BR><BR>KLC

8. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## If life was that simple

ok let me try again<BR><BR>i mave multiple borrowers<BR><BR><BR>noe each borrower MAY be joint (or not)<BR><BR><BR>if they are joint i have to ensure more than one borrower is not joint to the same borrower.....know what *I* did not understand what i just typed<BR><BR><BR>ok let me try again<BR><BR>borrowers<BR>1<BR>2<BR>3<BR>4<BR>5<BR >6<BR><BR>ok now 1 can be joint with 3 and there fore 3 will be joint with 1 BUT (this i have to check for) 2 or 4 or 5 or 6 CANNOT be joint with 1 or 3....2 can be joint with 4 and 5 with 6 or in any other combination <BR><BR>basically a borrower cannot be joint with another borrower that is already joint with someone ELSE....make any sense???<BR><BR>

9. Senior Member
Join Date
Dec 1969
Posts
96,118

## You mean prebuild the array?

The point of my code was to build the pairs from an array, but pre-creating all the combos of only 6 possible pairs isn&#039;t a silly idea, since there are only 15 of them.<BR><BR>

10. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## borrower pairs in an array???

as in 1, 2 is ONE element of an array??<BR><BR><BR>or a multidimential array?<BR><BR>wanna expand on that?<BR><BR>

#### Posting Permissions

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