Hi,
After using fft1, the output report data sheet can be gotten by fft1.rd. And the db is output to the column named "dB", so you can try the following script after using fft1 function.
string strOutput$ = fft1.rd$; // get the string of the output report data
string strSheet$ = strOutput.getToken(1, '!')$; // get the book and sheet part
string strColumnDB$ = %(strSheet$)!col(dB); // concatenate book, sheet, column (column dB)
range rDB = %(strColumnDB$); // define a range with the concatenated string
max(rDB) = ; // get the maximum value
Penn