PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Problems initialization of vars in Report Editor
Problems initialization of vars in Report Editor
Started by David, Jan., 06 2004 4:54 PM - No answer
Connect yourself…
David
#1
Posted on January, 06 2004 - 4:54 PM
I'm trying to count the number of lines in a report, so i'm using a var to
count each time data is read. In the first page it works ok but on the start
of a new page the var isn't reseted, why? Because the first time it doesn't
pass trough "pre-print of BODY" and still got the value of the last line
printed. I've tried to initializate the var in every possible event and i
come up with the same result. After the first page the number of the first
line is the number of the last line of the last page plus one.
Here is some code:
GLOBAL
nOrdem is int
Data Read of Report
nOrdem ++
Itm_Ordem = nOrdem //this is the item wich displays the line number
Initialization of PAGE_HEADER
nOrdem = 0
Pre-Print of PAGE_FOOTER
nOrdem = 0
Does anyone know how to figure this out??!!
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text