06-04-2008 03:18 PM
06-11-2008 02:20 PM
06-11-2008 02:44 PM
Thanks Mike for your interest.
no i did not yet got any answer that would enlight me ![]()
but i am now understanding a little more the interface LV and Excel. at first i wanted a direct interface to an excel sheet, where i could "click" with the mouse to choose the field of interest. it wont be feasable.
my approach will be to read a full datasheet into a string table. the first problem is that some cells in the excel sheet have errors, and then the translation variant to string table returns an error. so i need a way to scan the variant data for 'bad' cells.
the second step, will be to choose a few specific cells from that table. i think i should manage not too difficultly using event structures. in general there will be a marker at a specific cell (string indicating the meaning of the value in the next cell), and a value cell.
third step will be to extract a list of such excel tables, and read out the specific cells of interest. the tricky part will be, in case the marker cell is not equal to the choosed value. then the excel file shoudl again be fully extracted to a table, and again i should be able to choose the marker cell and value cell.
so the app will have a library of possible cells to look for a specific marker, in the following excel file to read. if it fits, extract value. if search returns null, then again i (the user), should be able to pick from the table what is the marker cell and value cell.
you see the necessity to switch from excel format to string, the searching and comparison, makes the whole process quite convoluted, rather than a direct operation with excel interface in a container for example.
i hope this is clear. i acknowledge any input and idea 🙂