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
 Import ASCCI file without changing name of the wks
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Marco1234

Germany
7 Posts

Posted - 05/14/2002 :  03:12:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
If I import an ASCCI file by a script with the command OPEN the active worksheet will named as the ASCCI filename. I can get the old WksName, but a can not set it.
Also I can only import in the first col(if it is one col), first+second (two col) and so on. But I need the Data in the maybee 88 col! Can someone help me?

Jose

Netherlands
93 Posts

Posted - 05/14/2002 :  06:12:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you have the old name kept in the string variable %n, you can rename the current worksheet after importing with
win -r %h %n;


If I understand your second problem, you want to import new data keeping the existing ones in the previous columns. I don't know what to do to import them in a exact column position, but there is an option to import new data in a worksheet keeping the previous: do File/Import/Single ASCII, then click the Options button. A dialog form will appear where you can select 'Import Info Worksheet as... New Columns'. This option can be saved as a worksheet template. I haven't found how to set it using LabTalk.

Alternatively, you may consider importing new data in a new worksheet, then join old+new with the [oldWks!]wks.join(newWks) method of the wks object, combined with the wks.joinmode property.

Regards,


Jose Via, Origin WebRing member

Edited by - Jose on 05/14/2002 06:16:59
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