Help please,
We are trying to use the SPSS I/O DLL from our own software to export our data into SPSS files. The issue we are having is that we can't seem to set the number of decimal places to zero for integers, it always uses the default 2 places. We have tried :
spssSetVarPrintFormat(spsshandle, Pchar('example'),SPSS_FMT_IB,0,3)
and
spssSetVarWriteFormat(spsshandle, Pchar('example'),SPSS_FMT_IB,0,3)
(n.b. we are programming in Delphi not C which is why we are using Pchar).
However when opening the resulting file in SPSS it still has two decimal places. Are these the procedures to use, and are we using them in the correct way?
Regards
Rob Aley
--------------
UK Medical Careers Research Group
Department of Public Health
University of Oxford
Old Road Campus
Headington
Oxford OX3 7LF
====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD