[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: "Peter Burton" <Peter_Burton@hyperion.com>
- Date: Fri, 1 Jul 2005 11:59:37 -0400
- Delivery-date: Fri, 01 Jul 2005 11:00:50 -0500
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Thread-index: AcV+VU2pkhped/NiQhGv/7dP/L/ahAAADyBw
- Thread-topic: [sqr-users] print
Tim,
However using a routine is a lot slower than just putting the "if" around the
print and it also makes assumptions about the print itself (location,
attributes, etc.).
Peter
-----Original Message-----
From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org
[mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org]On Behalf
Of Alexander, Steve
Sent: Friday, July 01, 2005 11:54 AM
To: 'This list is for discussion about the SQR database
reportinglanguagefrom Hyperion Solutions.'
Subject: RE: [sqr-users] print
Now I feel dumb for not thinking of a subroutine. Thanks, Tim.
-----Original Message-----
From: Tim Peters [mailto:timothy.peters@adelaide.edu.au]
Sent: Thursday, June 30, 2005 10:41 PM
To: This list is for discussion about the SQR database reporting
languagefrom Hyperion Solutions.
Subject: Re: [sqr-users] print
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
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users