FM Pro Adv. 11.0v4 Crash when I use "Constrain found set" in a script
I have lost all the day in this problem and I was not able to found a solution :-(
In a List layout, I make a quick find to limit the number of found records, than I switch to find mode and in one field I type the text "Yes".
Such field could be Yes or No, nothing else.
Then I move to the FM menù and I select "Constrain Found Set".
It works, I got only the records that have such field set to Yes.
Ok, what I need now is to have the same result using a script.
The quick find step works like before, than I have set the layout event "OnRecordLoad" that will run this script:
Enter Find Mode
Set Field [test; "Yes"]
Constrain Found Set
Unfortunately it does not work :-/
When the script reaches the "Constrain" istruction, the mouse cursor icon become like the Apple Command Key with a dot near.
It seems some kind of loop. I have to kill FM to exit.
What could be wrong? I have no more ideas about how to solve or about how to understand what is going wrong :-(