05-14-2012 06:03 AM
Hi all,
I have integer values to read from a spreadsheet and display them in a table. I am using 'Read from spreadsheet file' in 'integer' mode. I would like to display these values in a table. The problem is that the table takes only 2d-array of string as input but not integer.
It works fine if I change the mode of 'Read from spreadsheet file' from 'integer' to 'string' but I want to read integers and have to use the integer values for further calculations. Please give any suggestions on displaying integers to a table.
Thank you.
Solved! Go to Solution.
05-14-2012 06:06 AM
You do the same thing but in the display part convert that into string and display them but for the other numeric operation you can take the values from the numeric that you are reading from the spreadsheet.
05-14-2012 06:11 AM
Hi Anand,
I tried converting each element into a string by using index array and build it back into an array of string but it failed to dsplay.
Thank you.
05-14-2012 06:12 AM
Can you post your VI that fails?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-14-2012 06:18 AM
No don't take element by element just convert as a whole. See the attached example
Good luck
05-14-2012 06:23 AM
Thank you Anand...it is working..
but it is displaying the decimal places with zerors. any suggestion to remove this?
05-14-2012 06:26 AM
Then use Numeric to Decimal String function.
05-14-2012 06:29 AM
Thank you very much.
05-14-2012 06:31 AM
Hi TiTou
Sorry for not posting the VI. I got the solution before I could post. Thank you verymuch for replying.
05-14-2012 06:32 AM
No worries, glad to see you've got a solution 🙂
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus