I have a float table(numData) of length 55, I want to convert it to a string table (sData) so that I can write to a file in a SD card.
How can I loop through the number table and convert each element of the table to string element of the string table.
Is there a way to convert numeric table to string table?
an example to do this conversion might be helpful.
thanks …I did add this to the strategy this works now…(too bad we cant initialize variable in script).
I am getting error -23 that destination string too short? what can be this.
Yes, width is the total width including decimal. You can always click on the command help when your cursor is on the command and it will explain the parameters.
The FloatToString will pad the left side with spaces, so sTemp will have a string length of 8 all the time, and if the number will be longer than that, I believe it fills sTemp with *****.
Is sTemp or the string length of your string table you are assigning sTemp to shorter than 8? That is the only thing I can see that will cause your error -23.
Thanks …indeed sTemp was shorter. it fixed the problem, I might change this code to while loop or better use table length , it will easier if I want to add some more variables