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
 Using fdlog.open for open worksheets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Koguma

Brazil
Posts

Posted - 05/15/2006 :  12:40:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.0 v7.0220(B220)
Operating System:Windows XP

Hi!
I need to open several worksheets using the command LT_execute.
For only one worksheet i use:
LT_execute("fdlog.open();doc -a %B%A;");
But doestn work if I use :
LT_execute("fdlog.multiopen();doc -a %B%A;");

I saw in the previus post some similar doubts, but i cant undestand...
Thanks for the patience!

Mike Buess

USA
3037 Posts

Posted - 05/15/2006 :  1:53:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Actually, you are using both methods incorrectly.

fdlog.open() assigns the name of the selected file to %A but doesn't automatically assign the path to %B. The correct LabTalk commands for what you want to do are...

fdlog.open(); %B=fdlog.path$; doc -a %B%A;

fdlog.multiopen() doesn't even assign the file name to %A. The number of files selected is given by fdlog.multiopen.count and fdlog.get(A,n) assigns the full name and path of the nth file to %A. This LabTalk script will work for your purposes...

fdlog.multiopen();
loop(ii,1,fdlog.multiopen.count) {fdlog.get(A,ii); doc -a %A};

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/15/2006 2:10:05 PM
Go to Top of Page

Koguma

Brazil
Posts

Posted - 05/15/2006 :  2:11:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Uow! Thanks for the fast reply!!!
That is exacle what i need!
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