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
LabTalk string(n-1) %[%Z,%[%Z]]
New Topic
Reply to Topic
Printer Friendly
Author
Topic
peter.cook
UK
356 Posts
Posted - 07/01/2004 : 10:20:41 AM
Hi,
I've found this code :
%[%Z,%[%Z]] returns the string minus the last character. This is actually what I want. Is this expected behaviour with the script as shown ie reliable?
Cheers,
Pete
Mike Buess
USA
3037 Posts
Posted - 07/01/2004 : 11:41:23 AM
Hi Pete,
%[%Z,n] returns the substring preceding the nth character.
n=%[%Z] is the number of characters in %Z.
So %[%Z,%[%Z]] should return the string minus the last character. (Labtalk indices start with 1.)
Mike Buess
Origin WebRing
Member
peter.cook
UK
356 Posts
Posted - 07/02/2004 : 4:52:39 PM
Hi Mike,
Thanks for clarification,
Cheers,
Pete
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Learning Edition Forum
Origin Forum for Programming
Forum for Python
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
LabTalk Forum
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000