>I had a similar issue a week or so ago, but thought I had worked around it. I need to use a filter. The filter changes depending on the value of variables. I know that the variable go out of scope if they are defined in the INIT (or seem to anyway). The filter does not like using THISFORM in the condition. What is the best solution? If it is making a reference to THISFORM and using that, how do I do that? I tried a couple things, but it kept saying that I could not redefine THISFORM.
Jay,
Here is one of the solutions.
lcFilter = "myIntField = " + transform(thisform.IntegerField)
or
lcFilter = 'myCharField = "' + thisform.CharField + '"'
set filter to &lcFilter
If it's not broken, fix it until it is.
My Blog