there was this piece of code in a delphi 5 program that i was debugging:
s:string
vararray:variant;
vararray := VarArrayOf(['']);
vararray := ExcelWorkSheet1.UsedRange[0].Value;
s := VarToStr(vararray);
This is used to perfectly work when Excel XP and 2003 were running. But ever since I changed to Excel 2007 (also windows7), delphi gives a variant type conversion error on the last line ('Invalid variant type conversion').
Can someone please help me out on this? This code has not been touched for the last 5 years and I am not able to find a good source that documents these components
thanks!