Next, load data into the contact object. Batch jobs are processed by clearing and reloading the contact object with each new set of data:
setField(&myContact,
OFTAddressLine1,
"Optima Database Management Ltd");
setField(&myContact,
OFTAddressLine2,
"2 Concorde Drive");
setField(&myContact,
OFTAddressLine3,
"Clevedon");
setField(&myContact,
OFTAddressLine4,
"BS21 7RY");
setField(&myContact,
OFTCountryISO,
"GBR");
cout << "Input data:" << endl;
i = OFTAddressLine1;
while (strlen(getField(&myContact, i)) > 0)
cout << getField(&myContact, i++) << endl;