Deltax function.

Hello
I am trying to write a code so that the function take the second number of my wave called Xwave - the first number of my Xwave. I tried to use Deltax function yet the answer is incorrect. What am I doing wrong?
The DeltaX function returns information about a wave's X scaling. For information about X scaling, execute this command on Igor's command line:

DisplayHelpTopic "The Waveform Model of Data"

To get the difference of two elements in the wave, simply use subtraction. For the first and second (zero and 1 indices):

Xwave[1] - Xwave[0]

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com