|
is there an easy way to find the index of a string?
in C# i was wondering, if i had a table defined like this
FXCore.TableAut Trades = (FXCore.TableAut)tradeDesk1.FindMainTable("trades" );
is there any way i can do somrthing like this?
Trades.IndexOf("String")
what i need, is a way to find the row containing a specific OpenOrderID without passing the whole table to an array or list if at all possible
edit: sorry, i think ive already answered my own question with the FindRow function.. am i right in assuming that is the function i need? and if im right, how do i use the function? i need to find the row of a specific OpenOrderID, it returns an object but i just need the row number as an integer and i keep getting this error
Unable to cast COM object of type 'System.__ComObject' to interface type 'System.IConvertible'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{805E3B62-B5E9-393D-8941-377D8BF4556B}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
uint d = Convert.ToUInt32(Trades.FindRow("OpenOrderID", "4975537", 0));
Last edited by Kalzenith; 11-02-2009 at 02:24 PM..
|