View previous topic :: View next topic
|
Author |
Message |
ramanindya55
New User
Joined: 23 May 2008 Posts: 9 Location: pune
|
|
|
|
Hi Friends,
I need to display " Mainframe (India) " in the Header of a Panel...
But in the final result I'm getting only " Mainframe India)" .. I dont why '(' is missing in the panel.
Please give me some ideas ...
Thanks in advance.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think that the problem is with line 4 of the panel code. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
expat wrote: |
I think that the problem is with line 4 of the panel code. |
In other words: Show us the code! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
as Vanky frantically studies line 4 to find the problem ...... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
And line 4 is a comment. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or in the case of this OP ........... "No comment" |
|
Back to top |
|
|
ramanindya55
New User
Joined: 23 May 2008 Posts: 9 Location: pune
|
|
|
|
Code: |
)ATTR
% TYPE(TEXT) INTENS(LOW) SKIP(ON)
)BODY DEFAULT((+!)
% Welcome to Mainframe (India) %
)INIT
)PROC
)END
|
This is the Code ...
But finally i'm getting as
Code: |
Welcome to Mainframe India)
|
Please help me ... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Hint: how many left parentheses in this statement? What do you think that means? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
AND if you count the blank line after the ATTR this is line 4 .... ROFLMAO! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Spooky that - isn't it
P.S. Palm and tealeave readings by appointment only |
|
Back to top |
|
|
ramanindya55
New User
Joined: 23 May 2008 Posts: 9 Location: pune
|
|
|
|
Hi Friends,
Thanks a lot.. after removing from "default((" word from body section...itz working...
And Now in the same case .. now '_ ' is not coming
Following is my code
Code: |
)ATTR
ยข TYPE(CH)
< TYPE(TEXT) INTENS(LOW) SKIP(ON)
$ TYPE(TEXT) INTENS(HIGH) SKIP(ON)
@ TYPE(INPUT) COLOR(TURQ) CAPS(ON) HILITE(USCORE)
# TYPE(OUTPUT) INTENS(HIGH) HILITE(USCORE)
% TYPE(OUTPUT) INTENS(LOW)
. TYPE(TEXT)
)BODY
Welcome (User)
PAGE 1 OF 1
$User_Name CHAR(8) @Z $
$Funky_name CHAR(8) @Z $
$SIM_time_TS $TIMESTAMP @Z $
$file_fmt_nbr $CHAR(12) @Z $
$CATTLE_FOR_CODE $CHAR(5) @Z $
$AS_OF_CT_VALUE $CHAR(5) @Z $
|
i'm Getting Error as shown below
Code: |
******************************************************************************
* ISPP125 *
* *
* Panel 'PANEL' error *
* Duplicate panel field (or area) name defined. *
* *
* *
* *
* *
* *
* *
* Panel line where error was detected: *
* $ _ _ $CHAR(5) @Z $ *
|
Can u plz help me out |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
You removed the DEFAULT, but you removed it without understanding what it does.
DEFAULT((+!) alters the default attribute characters from their actual defaults, which includes the underscore character. If you want to use the underscore within your panel, then provide new defaults (but use characters that you do not use in the panel). |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
You are now using the )ATTR and )BODY without changing the default attributes.
The default is:
Code: |
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
_ TYPE(INPUT) INTENS(HIGH) |
which means you cannot use underscore as part of the text.
1. Don't define attributes that you don't need.
2. Use )ATTR DEFAULT(%+!) for example if you want "_" to be available.
3. If you use Z variables, don't forget to define .ZVARS in the )INIT section
4. Don't place attributes where they are not necessary.
5. Keep variables aligned one below the other. |
|
Back to top |
|
|
ramanindya55
New User
Joined: 23 May 2008 Posts: 9 Location: pune
|
|
|
|
Hi Friends,
Thanks a lot.. Itz working fine...:-) |
|
Back to top |
|
|
|