[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] print
- Subject: Re: [sqr-users] print
- From: Tim Peters <timothy.peters@adelaide.edu.au>
- Date: Fri, 01 Jul 2005 15:10:46 +0930
- Delivery-date: Fri, 01 Jul 2005 00:41:52 -0500
- In-reply-to: <BAY103-F28DB06DD97D8DACC1D08A3E9E30@phx.gbl>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- References: <BAY103-F28DB06DD97D8DACC1D08A3E9E30@phx.gbl>
- User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)
How about something like this (untested):
begin-procedure print-unless-blank ($str)
if not isblank($str)
print $str (+1,1)
end-if
end-procedure
...
print $address1 (0,1)
do print-unless-blank($address2)
do print-unless-blank($address3)
! etc...
Regards,
Tim
radhika reddy wrote:
> Hi,
>
> I have to print the in the following format:
>
> Address1
> Address2
> Address3
> phone
> county - line by line
>
> I would do something like this:
>
> print address1 (0,1)
> print address2 (+1,1)
> print address3 (+1,1)
> print phone (+1,1)
> print county (+1,1)
>
> My problem is sometimes address2, addr3,phone,county might be empty then
> there would be 4 lines of space which i don't want to have.
>
> I don't want to put If statement for each of these to see if they are
> empty. Is there any better way to do this?
>
> Thanks. Any help is great.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users