Hello,
I have a few questions concerning below, generated printout:
A B C D E
0.000 on 0.97034 11.04377 -3.12500 -0.24468
0.031 0.97034
0.063 0.97034
0.094 0.97034
0.125 0.97034
0.156 0.97034
0.188 0.97034
0.219 0.97034
0.250 0.97034 -3.12500
0.281 0.97034
0.313 0.97034
0.344 0.97034
0.375 0.97034
0.406 0.97034
0.438 0.97034
0.469 0.97034
0.500 on 0.97034 10.70707 -3.12500 -0.24468
0.531 0.97034
0.563 0.97034
0.594 0.97034
0.625 0.97034
0.656 0.97034
0.688 0.97034
0.719 0.97034
0.750 0.97034 -3.12500
0.781 0.97034
0.813 0.97034
0.844 0.97034
0.875 0.97034
0.906 0.97034
0.938 0.97034
0.969 0.97034
1.000 on 0.97034 9.96633 -3.12500 -0.24468
What would be the best way of saving below data in Delphi 7.0?.
What strategy would be best as far as empty records are concerned?.
Data are recorded with different sample rate.
How could I save information about sample rate of particular data?.
Why if one symbol appears before decimal dot of preceeding element Delphi
program puts numbers together. For example string: '0.97034 11.04377' looks
the following way in Delphi program: '0.9703411.04377'.
One could fill empty fields with preceeding values, one could as well cut
off rows which doesn't include 6 parameters. But then I would loose the
sample rate with which parameters are recorded. So such ways are not good.
One could fill empty records with some big number, which certainly won't
appear as parameter, but could I do, in such case with two-state parameter
'on'?.
Maybe there is some other way, more comfortable and simpler?. Besides to
which data structure enter one line with parameters?. There would appear
float values and one bool value.
I'm heading towards state in which I could enter A[0.000] and get value
'on', B[0.000] and get 0.97034 value etc. If I would enter A[0.031], the
program should protest - ''there's no such value'. If I entered bad sample
rate, the program should discover it as well.
Cheers.