10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Manage TransactionsDividing the operation into two transactionsThe following code illustrates this approach:on click load_button,on userevent 'load_data' =beginparttable.Clear(); /* Clear out array */i = 1;select partno as :parttable[i].partno,partno as :parttable[i].partno_save,short_desc as:parttable[i].short_descfrom partbegini = i + 1;end;commit; /* Commit added here */end;on click update_button =begini = parttable.FirstRow;/* No error checking is done for simplicity** of example */while i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!