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
 Import ASCCI file without changing name of the wks

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
Marco1234 Posted - 05/14/2002 : 03:12:22 AM
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?
1   L A T E S T    R E P L I E S    (Newest First)
Jose Posted - 05/14/2002 : 06:12:50 AM
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 Viņa, Origin WebRing member

Edited by - Jose on 05/14/2002 06:16:59

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