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
 LabTalk Forum
 Setting column parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JonasKlim

Lithuania
36 Posts

Posted - 10/13/2017 :  10:34:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I try to set column parameters, but get Command Error:
newbook name:="Duomenys T290K" sheet:=3;
newsheet name:=Bandinys1 cols:=5;
Up to this point script works, but then:
[Duomenys T290K]Bandinys1!col(1).digitmode=1;
[Duomenys T290K]Bandinys1!col(1).digits=4;
Returns an error.
What is whong in the script?
Jonas

Hideo Fujii

USA
1582 Posts

Posted - 10/13/2017 :  11:55:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jonas,

The following should work:
range c1=[Duomenys T290K]Bandinys1!col(1);
c1.digitmode=1;
c1.digits=4;
Generally speaking, the range notation, in this case [Duomenys T290K]Bandinys1!col(1), is not an object,
just a notation to give the specification of the range. Range IS an object. So, first you make the range object,
then specify its property like digitmode.

Hope this makes sense.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 10/13/2017 11:57:32 AM
Go to Top of Page

JonasKlim

Lithuania
36 Posts

Posted - 10/14/2017 :  06:03:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,Hideo Fujii,

You have helped. Thank you.

Jonas
quote:
Originally posted by Hideo Fujii

Hi Jonas,

The following should work:
range c1=[Duomenys T290K]Bandinys1!col(1);
c1.digitmode=1;
c1.digits=4;
Generally speaking, the range notation, in this case [Duomenys T290K]Bandinys1!col(1), is not an object,
just a notation to give the specification of the range. Range IS an object. So, first you make the range object,
then specify its property like digitmode.

Hope this makes sense.

--Hideo Fujii
OriginLab

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