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
 editing strings in cells
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blt2si

Germany
37 Posts

Posted - 08/12/2003 :  03:07:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
Just wondering if anyone knows if it is possible to edit text in a cell using labtalk? I have written the filename into a cell using
%(%H,7,5)="%A";
But %A = filename.txt and i dont want the .txt on the end.
Is there anyway to delete that portion of the string?
Cheers and thanks!

Mike Buess

USA
3037 Posts

Posted - 08/12/2003 :  07:19:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The following substring notation extracts everything to the left of the dot character.

%A=filename.txt;
%A=%[%A,'.'];
%A=;
filename

Mike Buess
Origin WebRing Member
Go to Top of Page

blt2si

Germany
37 Posts

Posted - 08/12/2003 :  10:24:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks!!
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