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 for Programming
 Forum for Origin C
 Q: Sorting Worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hajo_old

Germany
141 Posts

Posted - 03/05/2003 :  03:36:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello, all

I tried wsorting a worksheet with
(menu command "sort worksheet")

LT_execute("menu -e 36464");


but the function requires a selected column from the actual worksheet.

Is there a OriginC function available for sorting a worksheet?

Thanks Hajo


-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg

SVDO_Origin1

Mike Buess

USA
3037 Posts

Posted - 03/05/2003 :  08:08:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hajo,

1. You can sort a curve in OriginC...

Curve crv("Data1_A","Data1_B");
crv.Sort(NS_DESCENDING | NS_MISSING_AS_SMALLEST);

2. The LabTalk sort() function will sort a dataset in ascending order.

Data1_C = sort(Data1_B);

3. The LabTalk sort command and sort object both sort a worksheet against a dataset with a rather extensive set of options.



Mike Buess
Origin WebRing Member
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