Do you find this script useful?
Yes
No
Comments?
New query
The New Query command normally empties out all of the boxes on a query screen without resetting the Boolean state. This script resets the Boolean state of each box to AND when New Query is selected.
Script Language: JavaScript For use with:
DB/TextWorks
DB/SearchWorks
DB/Text Run-time
Requires at least version 4.2
function onFormClear()
{
  for (var i=0; i < Form.boxes.Count ; i++)
    Form.boxes(i).booleanValue = Form.boxes(i).BooleanAND;
}
Notes: You must assign each query box box a script name in order for this script to work. Any query box with no script name will not have its Boolean state reset.
Submitted by Inmagic Staff on 11/30/2000

Powered by DB/Text WebPublisher, from Inmagic WebPublisher PRO