Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find Z-order in FRX?

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!

I use to modify reports on the fly by hacking them.
Now I am looking what field is responsible for the Z-order of a picture versus a textbox.
Probably I overlooked but I can't find that.

Anyone here who knows?
TIA
-Bart
 
I think it is controlled by the record position in the .frx table - not by a field, but by the natural order in which VFP finds the elements

From this I surmise that the topmost element is the last one listed in the .frx table if you browse it.

I found this by testing only.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.
 
Thanks Griff,
I wil investigate. Good thought which did not came up in my mind.
Thanks so far.
-Bart
 
I think it is controlled by the record position in the .frx table - not by a field, but by the natural order in which VFP finds the element

That might be right - although it not what John Koziol says:

Records for other report objects* appear to be stored in creation order

* other than the report definition record and the group headers and footers. Source.

Bart, if the above doesn't help, and if all else fails, you could always create two copies of the report; make them identical in every respect except the z-order of a single field; then write a quick file comparison routine to compare the files and see how they differ. That should be an easy thing to do.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Mike,

I made a report with two fields, and swapped them from front to back, saving and opening the .frxs to browse.

The order the two elements appeared changed, so I surmise that it's not the order of creation, it's the order in which they are
written out when saved that controls the Z order.

If I want to manage that in realtime, I would add a field to the .frx, and put a number in there that would give me control over the
order then index on it and copy the .frx out to a new file.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.
 
Mike,
I read the source doc of John Koziol (good article) but the graphics are missing.
Is there a way to get those?
-Bart
 
Hi Bart,

you know that all these data you can print yourselve?
Just run one of the reports in:

Home()+\tools\filespec
90frx.frx for example shows you the fields of VFP9 reportbehavior 90

Groet,

Jockey(2)
 
Koen,

I referred to a link in the (source) document Mike pointed me to.
That one was missing.

quote
* other than the report definition record and the group headers and footers. Source.
unquote

KR
-Bart
 
Bart,

The images are missing in my copy as well. But I don't think it matters. It's the tables and text that are important. In any case, I didn't quote the document because I thought it would answer your question, but rather to support my comment on Griff's statement about the order of records. If you really want a copy of the document with the images, you could contact the Deutschsprachige user group.

Griff's comment might well be the solution. I don't know. But I think you should also consider my suggestion of running a simple file comparison test on two copies of the FRX.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top