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
 All Forums
 Origin Forum
 Origin Forum
 Prompting User to Select a Column

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
madhav.pathak Posted - 07/23/2015 : 07:16:23 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
cdrozdowski111 Posted - 07/23/2015 : 10:12:10 AM
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$)";


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000