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

LucSerre

Posts

Posted - 01/20/2005 :  11:55:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System:win2000

I try the following code and as soon as I click on the Options button, Origin crashes (disappears).

fdlog.optionDlg$=IMPASCII;
fdlog.usegroup(ASCII);
fdlog.open();
%B=fdlog.path$;
window -t matrix;
open -w B;

The import options that I want to use are always going to be the same, is there a way of coding them into my script?

Mike Buess

USA
3037 Posts

Posted - 01/20/2005 :  12:14:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To avoid the crash you should create the matrix before you open the file dialog...

window -t matrix;
fdlog.optionDlg$=IMPASCII;
fdlog.usegroup(ASCII);
fdlog.open();
%B=fdlog.path$;
open -w B;

...Apparently ASCII options are not saved with matrix templates. (Never noticed that before!) One possibility is to import to a wks (for which you can save ASCII options) and then convert to matrix. See my reply to your other topic for details.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/20/2005 12:19:14 PM
Go to Top of Page

LucSerre

Posts

Posted - 01/20/2005 :  12:50:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks!
I replied there too
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