Skip to Content
author's profile photo Former Member
Former Member

help in scripts

hi guys,

I know this may sound funny to you . But that is what my requirement is

In a line i have to fill with *** symbols

like ****abcd******

****def*******

This is how i want.

before abcd and def i can give directly in form because its fixed no of * but at the end the no of * varies.

i tried to find the legth for abcd = 4

def = 3

starting from ato end of line i have space for 11 char

s = ***********

l = length of abcd

f = 11 - l = 11-4 for abcd

11-3 for def

s1 = s + 0(f)

then s1 has ******* for abcd

  • for def

then in form i have written like this

*****abcd&s1&

i have the req no of * in driver program but it does print in my output.

i guess the value **** is not carried to form.

Thanks

venki

i

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 07:32 PM

    Hi

    i figured it out

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.