View RSS Feed

Development Team Blog

  1. Using Expressions and Properties in Constraints

    by , 14-Aug-2009 at 08:00 AM (Development Team Blog)
    In Sonny Falkís blog about [URL=""]constraints and local variables[/URL] he noted that you should never use local variables inside of a [I]Constrain As [/I]expression. In talking about [I]Constrain As[/I] he states: [quote]You constrain against an expression, and the expression can be anything at all, including function calls executing DataFlex code and everything.[/quote]
    Letís explore the use of [I]Constrain As[/I] to call DataFlex ...

    Updated 14-Aug-2009 at 08:36 AM by Stephen W. Meeley (Minor formatting.)

  2. Constraints and Local Variables

    by , 10-Aug-2009 at 07:00 AM (Development Team Blog)
    Constraints and local variables is a frequent question in the forums, let's see if we can sort this out. The basics is that you set it up once, and then the runtime uses the constraints when finding records thereafter. If you want to change your constraints, you rebuild the whole set of constraints, and then the runtime uses that thereafter.

    The way constraints are set up is complicated a little with DDs and I won't go into the details, but essentially you augment the [I]OnConstrain[/I] ...