LOCALDATA attributes or properties


#1

Creating a template for REPORTs and I want the control to have certain attributes when I place it on the report. ie I want a string to be aligned centered, a date to have a certain picture.

I can’t see how to do that in the template code in LOCALDATA, I can only declare it without any attributes and the report IDE assigns whatever default attributes or properties it decides.

Looking for something like:
! STRING(@s40),USE(FooterLine),CENTER
FooterLine STRING(40)
!!> IDENT(4294962853),PICTURE(@s40),JUSTIFY(CENTER)
! STRING(@d6),USE(PrintDate),RIGHT(1)
PrintDate LONG
!!>IDENT(4294962854),PICTURE(@d6)

but I can only do:
#LOCALDATA
PrintDate LONG
FooterLine STRING(40)
#ENDLOCLDATA

I know I can change it by clicking the Data button but that kind of defeats the purpose of template code. I have had a scrounge through the shipped templates but nothing jumps out at me as being what I’m after.

C5.5
Thanks.


#2

never tried that, but can’t you just
#LOCALDATA
! STRING(@s40),USE(FooterLine),CENTER
FooterLine STRING(40)
!!> IDENT(4294962853),PICTURE(@s40),JUSTIFY(CENTER)
! STRING(@d6),USE(PrintDate),RIGHT(1)
PrintDate LONG
!!>IDENT(4294962854),PICTURE(@d6)
#ENDLOCLDATA


#3

Already tried that (should have said so), and no.

Throws an error:
Error: identifier expected
for each line starting with !


#4

well, so maybe somewhere later in template code:

#FOR(%Field)
  #CASE(%FieldIdent)
  #OF(4294962853)
    #SET(%FieldPicture, '@s40')
    #SET(%FieldJustType, 'C)
  #OF(4294962854)
    .... next field's options
  #ENDCASE
#ENDFOR