Skip to Content
0
Former Member
Jun 05, 2008 at 09:20 AM

Update object in SBO 1

17 Views

How would you modify a database field with a value you obtain from a form using the update object? I have tried:

dbItem.ItemCode = code;

dbItem.ItemName = reg;

dbItem.SWW = make;

dbItem.ForeignName = model;

int x;

x = dbItem.Update();

if (x == 0)

{

SBO_Application.MessageBox("Vehicle details updated!", 1, "Ok", "", "");

}

else

{

SBO_Application.MessageBox("Error, failed to update vehicle details!!", 1, "Ok", "", "");

}

where code, reg, make and model are string variables but it is not updating. Should i specify the actual row in the database that i want to update?