If this is your first visit to our forums, welcome!
In Sonny Falk’s blog about [URL="http://support.dataaccess.com/Forums/blog.php?b=17"]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.)
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] ...