If you are trying to read some column values from a form it would be way easier to use SQL queries. This is what I do.
string firmenname = "";
string ort = "";
string plz = "";
string strasse = "";
SAPbobsCOM.Recordset mRs1 = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string sqlstring = " select top 1 street, zipcode, city, country, address from CRD1 where cardcode = '" + codeid + "' and adrestype ='B' ";
mRs1.DoQuery(sqlstring);
while (!mRs1.EoF)
{
strasse = mRs1.Fields.Item("street").Value.ToString();
ort = mRs1.Fields.Item("city").Value.ToString();
plz = mRs1.Fields.Item("zipcode").Value.ToString();
firmenname = mRs1.Fields.Item("address").Value.ToString();
mRs1.MoveNext();
}
I kinda had the same question as you. But after I came up with this idea it was so easy to read values from any form with number of columns. All you have to do is "View -> System Informations" and know in which database table, the values are stored. Then write your desired SQL query.
Hope this helps you!