The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Prompting User to Select a Column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

madhav.pathak

India
1 Posts

Posted - 07/23/2015 :  07:16:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I want to create a script that prompts user to select two columns, after selection I want to do data manipulation with these two columns and output it to a new column.

Origin Script for the same will be very helpful.

Thank you

Madhav

cdrozdowski111

USA
247 Posts

Posted - 07/23/2015 :  10:12:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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$)";

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000