Search results

  1. A

    PK attribute of fields in form sourced by queries

    all, I have an unusual request that doesn't make sense but I'm gonna implement it anyway. I have a user that has a hugely unorthodox method of building databases. As result, I need to do the following for him: => Look at each field in a source query for a form, determine which fields are...
  2. A

    question about arrays and indicies

    Lagbolt, Here's the answer in PHP: $words = array(1,2,3,4); $num = count($words); //The total number of possible combinations $total = pow(2, $num); //Loop through each possible combination for ($i = 0; $i < $total; $i++) { //For each combination check if each bit is set for ($j = 0...
  3. A

    question about arrays and indicies

    yes I did make an error there. thanks for catching that!! yes I want all combinations and not all permutations. you are right, but keep in mind that is *not* always going to be rule. or rather, it shouldn't. because if it was "a rule" that you went by, you would have inputs such as (for...
  4. A

    question about arrays and indicies

    Lagbolt, As a follow up to this whole thing, I only want assistance in trimming down the function in visual basic to give the outputs that are needed and not having to sift through what it currently outputs in terms of values. That's just too redundant. I can translate it to PHP without...
  5. A

    question about arrays and indicies

    YES!! See previous post. Run it in excel and see an output. as you'll see, unique sequences are being output. but unique sequences aren't the same as unique combinations. the latter is what I want, so that involves a smaller list. stripping out the "dups" of the list, which would result in...
  6. A

    question about arrays and indicies

    sorry for the last original post, the comments near the end were not comprehendible. I changed them so they make sense now. thanks.
  7. A

    question about arrays and indicies

    I know you can program, Lagbolt. I know your name here. Here's the full code (easy code is pseudo-written): sub outputValues(strIn as string) dim strOut() as string strOut() = Permute(strIn) For X = 0 To UBound(strOut) cell = strOut(X) increment cell Next X end sub Public...
  8. A

    question about arrays and indicies

    of course it's not trivial. especially if it employs leveraging techniques like recursion or anything else. that's what this code does. I'm working with vb6 and PHP at the moment for 2 different people and PHP is much more convenient in the fact that the function base is larger and some of...
  9. A

    question about arrays and indicies

    all, I have code that I can't wrap my head around. here it is: aPos(1) = aPos(1) + 1 For X = 1 To Len(sInput) - 1 If aPos(X) > Len(sInput) Then aPos(X) = 1 aPos(X + 1) = aPos(X + 1) + 1 End If Next X If aPos(Len(sInput)) >...
  10. A

    .oldvalue and .value error

    hi all, I have audit trail based code that I was asked to fix. the design is not very good but I'm getting a strange error. here are the specs on the scenario: If IsNull(c.OldValue) And Not IsNull(c.Value) Then changes = changes & _...
  11. A

    reading email through SMTP/CDO library

    All, I have another developer that decided to use the win 2000 CDO library to send email attachments from a DB. They were planning on doing the same thing again to retrieve the attachments on another machine from the same server they sent it to (client's). In this case they are doing what...
  12. A

    Hello to all.

    Hi all. New to the forum here. Been programming for quite some time, but just new here. Here to search and ask questions. Hopefully good ones!
Back
Top Bottom