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
 Ascii import option in Labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Ray111

Israel
Posts

Posted - 05/24/2005 :  05:20:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I like to automate Acsii import option (for some fixed option) in Labtalk.
DO anybody know how can I save my ascii option in ascii import option dialog box in Labtalk without displaying dialog box and then proceed to import the file using that option.

regards
Ray

azazell0

Hungary
Posts

Posted - 05/24/2005 :  1:13:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

open a worksheet, set your ascii options, click the Update Options button, then save your worksheet as a template in your Origin root.

Then you can create a new window based on that template with the

window -t wks test;

command (if your template was named test). Use the

open -w filename;

command to import your data (to the active window). If there are spaces in your file path, be sure to use "filename", like "C:\My Data Files\MyData1.dat".

Edit: of course, it's not neccessary to create&import using Labtalk commands. You can do both manually from the File menu.

Edited by - azazell0 on 05/24/2005 1:23:29 PM
Go to Top of Page

Ray111

Israel
Posts

Posted - 05/27/2005 :  3:26:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks azazell0 for your excellent tips.
works perfectly.

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