View previous topic :: View next topic
|
Author |
Message |
dipanshu
New User
Joined: 16 Jan 2006 Posts: 53 Location: pune
|
|
|
|
str1 contains 'dipanshu goyal 2008'
how to calculate the length of str1
Pls assist
Thanks,
Dipanshu |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
You could have made a search to find out the help in forum instead.
Despite having a warning you didnt try that, I wish you help next time.
Well, Below pasted is the code for you.
Code: |
INSPECT FUNCTION REVERSE(TEXT1) TALLYING L FOR LEADING SPACE
COMPUTE L = X - L.
*X= Total length of the variable. |
Courtsy : MMWIFE (This code is taken from one of mmwife's earlier post, with a slight change )
Regards,
Priyesh. |
|
Back to top |
|
|
dileepv
New User
Joined: 03 Nov 2005 Posts: 2 Location: Hyderabad,AP,India
|
|
|
|
you have asked a simple question . right?
it is " length of str1 " will give u the result
ok bye |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Priyesh,
Thanx for the by-line.
dileepv,
str1 can be a pic x(50) field, length of str1 would yield "50". I'm sure Dipanshu meant:
"var1 pic x(50) contains str1. str1 contains 'dipanshu goyal 2008'. How to calculate the length of str1." |
|
Back to top |
|
|
siva2 Warnings : 1 New User
Joined: 10 Feb 2006 Posts: 7
|
|
|
|
1. waht is copy book ..
wht it contains..
explain me clearly..
im not clear about the concept..
please.. |
|
Back to top |
|
|
jangam
New User
Joined: 02 Feb 2006 Posts: 7
|
|
|
|
HI
Code: |
INSPECT SOURCESTR1 TALLYING COUNTER#1 FOR [ALL] CHARACTERS
|
I THINK THIS WORK CHECK PLEASE
REGARDS
HARI |
|
Back to top |
|
|
|