Hi Jonny,
The DBDatasource collection contains all the "tables" used by the form. They can be access by numerical index (just as in your code) or by "name" index.
sCardCode = oQuotationForm.DataSources.DBDataSources.Item("OQUT").GetValue("CardCode", 0); sProject = oQuotationForm.DataSources.DBDataSources.Item("OQUT").GetValue("Project", 0);
To access the "body" (I'm assuming you mean the lines) simply use the table that stores the lines (QUT1).
ItemCode = oQuotationForm.DataSources.DBDataSources.Item("QUT1").GetValue("ItemCode", 0); Quantity = oQuotationForm.DataSources.DBDataSources.Item("QUT1").GetValue("Quantity", 0);
This would return you the information for the first line. Change the index (0 in the above case) to access other lines.
Hope this helps.
Best regards,
Pedro Magueija