| Schedule of other income (expense), net |
| | | Three Months Ended April 30, | | | Nine Months Ended April 30, | | | | | 2019 | | | 2018 | | | 2019 | | | 2018 | | | | | (in thousands) | | | Foreign currency transaction losses | | $ | (3 | ) | | $ | (653 | ) | | $ | (838 | ) | | $ | (1,211 | ) | | Loss on sale of debt securities | | | — | | | | (7 | ) | | | — | | | | (16 | ) | | Gain (loss) on investments | | | 623 | | | | (66 | ) | | | 704 | | | | (7 | ) | | Other | | | (260 | ) | | | 14 | | | | (360 | ) | | | 66 | | | Total other income (expense), net | | $ | 360 | | | $ | (712 | ) | | $ | (494 | ) | | $ | (1,168 | ) |
|