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

tib

Switzerland
105 Posts

Posted - 10/23/2003 :  05:23:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Mike Buess

USA
3037 Posts

Posted - 10/23/2003 :  6:31:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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