Dips > Data Processing > Query Data

# Load / Save Query

The Load and Save buttons in the Query Data dialog allow you to save a Query in a text file, and load it back in to the Create Query area at a later time. Query files in Dips have a .qry filename extension.

- You may find Load / Save useful for saving complex queries for future re-use on another file, for example.

- It can also be useful for saving a complex query which needs to be re-used with modifications to one or two expressions, as described below.

Example of using Load / Save Query

1. Create a complex query consisting of several expressions (e.g. Traverse == 1 && expression && expression && expression)

2. Before selecting OK to implement the query, select the Save button. You will be prompted to save the query in a .qry file.

3. Select OK to implement the query and create a new file.

4. Select Query Data again, and select the Load button, and load the query you just saved into the Create Query area.

5. Click on the Expression you wish to replace (e.g. Traverse == 1) in the Create Query area, and select the Delete button.

6. Create a new Expression (e.g. Traverse == 2).

7. Select the Expression button, and you now have a new query, identical to the original, except for the modified expression.

8. Select OK to carry out the query.

9. Repeat steps 4 – 8 as many times as necessary.

The same procedure could be used, for example, to substitute different numeric Expressions (e.g. SPACING > 1, SPACING > 2, SPACING > 3) etc in a complex query.

For simple queries consisting of only one or two expressions, there is no advantage to using the Load / Save options, as it will be faster to simply re-create queries from scratch.