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
 Handling files with underscore

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
tib Posted - 10/23/2003 : 05:23:49 AM
Is there a way to handle files with underscore?
Like data_nk123.txt
Since the underscore is used for the columns of a worksheet after import of multiple data
fdlog.get(A,i)
open -w %A;
...do some more with worksheet %A;
the worksheet name will be set to "datank123"
but the variable %A is still "data_nk123"
OK, 1. I can do some rogramming to adjust %A and extract the underscore in the name if there is any.
2. I also could rename all the data files. This would cause other complications.
But maybe there is another easier way to get around this?
Thanks, Tilman.

1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 10/23/2003 : 6:31:58 PM
Hi Tilman,

This will strip an underscore and do nothing if there is no underscore...

%A=%[%A,'_']%[%A,>'_'];

Even easier...

open -w %A;
%A=%H;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/23/2003 6:36:49 PM

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