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