Form Header

CyberBoog

New Member
Hi Guys!

I have a weird probleme, here is my form definition :

FORM HEADER
TODAY
"Blah blah blah" AT 52
"Page:" AT 124 PAGE-NUMBER FORMAT ">>9"
SKIP(1)
"Entite :":U
entity-id.Site SKIP
entity.NAME
.
.
.
FILL('-', 132) FORMAT "x(132)"
WITH FRAME frmHeader WIDTH 132 PAGE-TOP
NO-LABEL NO-BOX NO-UNDERLINE STREAM-IO.


This is the error msg i have : "** Missing FOR, FIND or CREATE for a table with NAME in current block."

Why do i have this error ? This is only a form definition isn't it ? It doesn't need to point on the the buffers at that time, right ? And last, why it tell me that entity.name is missing and not entity-id.site ?

I have absolutely no find on any buffer before that form. In others pgm i used something similar to that with no problem.

But if i put release on those buffers before the form definition, everything is fine.

I hate having problem with things so basic, but i'm totally clueless right now. :confused: :confused:
 
Hi CyberBoog,


When using database fields in the header, you must first name the table in the form statement as follows:

FORM mytable HEADER mytable.myfield WITH FRAME myframe.

Cheers

John
 
Back
Top