What you need to do here is change the underlying field type in the Stonefield Query data dictionary. This topic is discussed in the help file under How To->Customizing the Stonefield Query Data Dictionary.
For this particular task, you need to create a setup.sqs file (in the program folder where sfquery.exe is). The code to achieve what you are looking for will be something like:
loField = SQApplication.DataEngine.Fields.Item('XXDETAIL.TITLE')
loField.Type = 'N'
loField.Length = 10
loField.Calculated = .T.
loField.Expression = 'VAL(TITLE)'
XXDETAIL is the name of the table internally, and Title is the name of the field. You can get this information by turning on "Display Real Table and field Names" (Tools->Options), and viewing the detail field in the quick report wizard. That is really the only line you should have to change. The other lines change the field type to numeric, length 10. The last line is a simple VFP expression that takes the underlying character value stored in the field (TITLE in my example, you may have to change this), and converts it to a numeric value.
Trevor |