How to Find Number of Lines in RV variable

Imrankhan

Active Member
Hi,

can anybody please help me to find the number of lines that is copied from the media object to a RV variable.
eg.,

In Media Object, the text will be like this, has 3 lines

Same text in Media Object.
Same text in Media Object.
Same text in Media Object.

I am copying these Media Object Text to RV Variable.
length of RV Variable is 100

RV Variable = "Same text in Media Object.
Same text in Media Object.
Same text in Media Object."

In the report it will display in 3 lines. Before it get printed I want to find the number of lines.

Thanks & Regards
Sheik Mohamed
 
Hi,

Thanks

I made a simple C Business Function to Find the number of lines in RV variable

Thanks & Regards
Sheik Mohamed
 
Sheik Mohamed,

The number of lines in the RV variable will depend on the number of New-Line characters it contains. There is a business function to get then New-Line character. You will than need to scan the RV variable for the New-Line character and count the number of times you find it.

Last month I posted an attachment that contained ER to break up a media text object. It may be of interest to you, as may be the whole thread. To go to my post click here.
 
Hi

Thanks

I couldnt able to find the Business Function to get the New-Line character.
I made a simple C Business Function to count the New-Line Characters in the RV Variable.
I went thru ur post its useful to me.
Thanks for ur help.

Thanks & Regards
Sheik Mohamed
 
Back
Top