Grid checkbox selected record open in new form

hi All,

i have one question so please replay.

I want to show grid checkbox selected record in a new form.

In a new opened form you can take the buffer of the previous table and write as:

While select tablebuffer

where tablebuffer.checkboxfield == noyes::yes

{

newformtable.field = tablebuffer.field;

etc…

newformtable.insert();

}

i am not understand this code properly.

so please send me brief description