Hi Madhav,
The LabTalk code below is the hardest part because it's not as well documented as most other things in Labtalk. It allows you to select 2 columns and returns a range string pointing to each column.
Once you have those range strings, you can use them to continue processing. There's lots of information in the Origin documents and the LabTalk forum about coding.
getn -c nCancel
(Select Column 1) sColumn1$:@BBColumn
(Select Column 2) sColumn2$:@BBColumn
; // End dialog
if (nCancel == 1)
{
type "Cancelled";
return;
}
// Continue processing using the 2 ranges
type "Column 1 Range: %(sColumn1$)";
type "Column 2 Range: %(sColumn2$)";