This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
QR GET HEADER AND FOOTER
|
QR GET HEADER AND FOOTER ( area ; selector ; leftTitle ; centerTitle ; rightTitle ; height {; picture {; pictAlignment}} ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
Reference of the area | |||||
selector | Longint |
![]() |
1 = Header, 2 = Footer | |||||
leftTitle | String |
![]() |
Text displayed on the left side | |||||
centerTitle | String |
![]() |
Text displayed in the middle | |||||
rightTitle | String |
![]() |
Text displayed on the right side | |||||
height | Longint |
![]() |
Header or footer height | |||||
picture | Picture |
![]() |
Picture to display | |||||
pictAlignment | Longint |
![]() |
Alignment attribute for the picture | |||||
The QR GET HEADER AND FOOTER command retrieves the contents and size of the header or footer.
selector allows you to select the header or the footer:
leftTitle, centerTitle and rightTitle returns the values for, respectively, the left, center and right header/footer.
height returns the height of the header/footer, expressed in the unit selected for the report.
picture returns a picture that is displayed in the header or footer.
pictAlignment is the alignment attribute for the picture displayed in the header/footer.
If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid selector value, the error -9852 will be generated.
The following code retrieves the values of the header titles as well as the header size and displays them in alerts:
QR GET HEADER AND FOOTER(MyArea;1;$LeftText;$CenterText;$RightText;$height)
Case of
:($LeftText #"")
ALERT("The left title is "+Char(34)+$LeftText+Char(34))
:($CenterText #"")
ALERT("The center title is "+Char(34)+$CenterText+Char(34))
:($RightText #"")
ALERT("The right title is "+Char(34)+$RightText+Char(34))
Else
ALERT("No header title in this report.")
End case
ALERT("The height of the header is "+String($height))
Product: 4D
Theme: Quick Report
Number:
775
Created: 4D 2003
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)