Hi
I'm converting the following example code to Delphi:
http://msdn.microsoft.com/en-us/library/bb176406%28v=office.12%29.aspx
My code is something like:
var vTable, vRow: OleVariant; begin .... while vTable.EndOfTable = False do begin vRow := vTable.GetNextRow; sEmail := vRow['Email1Address']; ShowMessage(sEmail); end; end;
The problem is that I need to pass a string index, 'Email1Address', but Delphi gives the error: Incompatible types: Integer and string.
Should I be using a different type of variant?
TIA