Simple question!

nvermanverma Member Posts: 396
Hey yall,

I have a very easy and stupid question to ask. But here it goes anyways.

What does this line of code mean.

Customer.SETRANGE("Job No.", rec."Job No.");

I know setrange is a simple filter and I can understand this example that is given in the introduction manual:-
SETRANGE filters the Customer table by selecting only those records where the No.
field has a value between 10000 and 90000.

But what does rec."Job No." do in the statement i asked above?


  • Options
    bbrownbbrown Member Posts: 3,268
    rec refers to the default record set of the current object. If it's Form, then it refers to "SourceTable".
    There are no bugs - only undocumented features.
  • Options
    ClausHamannClausHamann Member Posts: 80
    When you only use one parameter in SETRANGE you only filter on this value. E.g.
    is equal to
  • Options
    nvermanverma Member Posts: 396
    so this means that.

    Customer.SETRANGE("Job No.", rec."Job No.");

    Look at customer record and filter on Job No. and look at the current Job No. ???
Sign In or Register to comment.