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
 Graph title from wksht name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

YiDog21

USA
Posts

Posted - 10/25/2005 :  4:24:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.0
Operating System: XP

Is there a way of using the name given to a graph i.e. A200510201 ; where 20051020 is the date of the experiment and 1 the trial number, and set that value for the title of a graph looking something like 20051020-1 without the A and a dash in between the date and trial number by using a script created through labtalk?

Mike Buess

USA
3037 Posts

Posted - 10/25/2005 :  5:01:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think this produces the page label you want...

page.label$=%[%H,2:%[%H]-1]-%[%H,>%[%H]];

Mike Buess
Origin WebRing Member
Go to Top of Page

YiDog21

USA
Posts

Posted - 10/25/2005 :  5:48:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
actually, i realized i did not try to use the label command, so after doing page.label$=%[%w,2:%[%w]-1]-%[%w,>%[%w]]; and then using
label -s "%[%w,2:%[%w]-1]-%[%w,>%[%w]]";, it worked just fine... Thank you once again Mike.

Edited by - YiDog21 on 10/25/2005 6:29:23 PM
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