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
 Individual cell data retrieval

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
wallacej Posted - 05/23/2005 : 06:01:03 AM
Origin Version (7.5):
Operating System: win2k


I currently use the following line of script to retrieve elements 4 and 5 of the data in cell at column 10 of row 1.

%K = %[%(sheet1, 10,1),4:5];

The data in the cell has now changed and has some user inputted text at the beginning. This text can be of variable length which means that the elements I wish to retrieve are no longer in the set positions of 4 and 5.
My plan is to retrieve the data elements by using their position from the end of the value, as opposed to the beginning. Is it possible to do this in lab talk? Or do I have to put the value of the cell into a variable and perform some manipulation using C?

Thanks in advance

2   L A T E S T    R E P L I E S    (Newest First)
wallacej Posted - 05/23/2005 : 12:06:28 PM
Thanks Mike

Worked a treat!

Wallace

Mike Buess Posted - 05/23/2005 : 07:36:25 AM
The length of string %A is given by %[%A]. Either of these expressions will get the last two characters of %A...

%K=%[%A,%[%A]-1:%[%A]];

%K=%[%A,>%[%A]-1];

Mike Buess
Origin WebRing Member

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