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
 Bad column types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Jose

Netherlands
93 Posts

Posted - 06/04/2001 :  06:52:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In some of my worksheets I get a weird effect: I see I have one (or more) X column and several Y columns, but when I ask the column type in a script with

wks.col.type

I always get value 4, i.e. X type. All my columns are X, although 'Y' is shown in the labels of some of them! When I force one of these to 'really' be Y, by commanding

wks.col.type=1;

the selected, BUT ALSO THE X COLUMNS, become Y type! This is a weird effect whose origin I cannot spot. I am using version 6.0 sr2. Any suggestion?

jose.



Edited by - Jose on 06/04/2001 11:32:28

Laurie

USA
404 Posts

Posted - 06/04/2001 :  10:42:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You need to specify the column number when using this notation.

wks.col1.type=; //returns 4 for the X column

wks.col2.type=; //returns 1 for the Y column

If the column based on the user selection, you can use the following:

wks.col$(colnum(%C)).type=;
//colnum returns the column number of the active dataset

OriginLab Technical Support
Go to Top of Page

Jose

Netherlands
93 Posts

Posted - 06/04/2001 :  11:29:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Of course, you're right. Some mondays should be obligatory to stay in bed. I was thinking this gives the type for the selected column directly. Thanks for opening my eyes.

j.

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