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
 Bad column types

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
Jose Posted - 06/04/2001 : 06:52:14 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
Jose Posted - 06/04/2001 : 11:29:32 AM
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.

Laurie Posted - 06/04/2001 : 10:42:17 AM
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

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