| 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 |
|
|