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 for Programming
 LabTalk Forum
 Using fdlog.open for open worksheets

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
Koguma Posted - 05/15/2006 : 12:40:03 PM
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!
2   L A T E S T    R E P L I E S    (Newest First)
Koguma Posted - 05/15/2006 : 2:11:31 PM
Uow! Thanks for the fast reply!!!
That is exacle what i need!
Mike Buess Posted - 05/15/2006 : 1:53:33 PM
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

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