Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 21 NOV 2002 12:49:26PM Tom Savell wrote:

Does anyone know a way to get the page count of a form in any type manner (i.e. get_property, reading sysreposwins)?

Thanks!


At 21 NOV 2002 02:36PM Oystein Reigem wrote:

Tom,

Do you mean how to programmatically decide the number of pages in a multi-page form?

At least it's possible to decide the current page number. I remember somebody asked about that a couple of months back. I responded with a kludgy solution. Somebody else responded with a neat solution - a property or something.

If nobody can supply you with a simple solution for the number of pages I think it's possible to make a solution on the same principles as my kludgy page number solution.

- Oystein -


At 21 NOV 2002 02:58PM Donald Bakke wrote:

Tom,

Use the VPOSITION property for @Window. Position should tell you how many pages exist in the form.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 21 NOV 2002 03:08PM Oystein Reigem wrote:

Don,

That's what occurred to me after I replied. I even found an old posting where I gave that advice to somebody a few years back.

But does it still work in OI32? I just tried to check the VPOSITION property of a multi-page window with the Debugger. The Debugger claimed there was no such property. Weird. Must try again.

- Oystein -


At 21 NOV 2002 03:27PM Oystein Reigem wrote:

Don,

Window VPOSITION works in my 3.7.1 but not in 4.0.3. How can I get it to work?

Btw - the stuff with the Debugger not showing VPOSITION in the View Properties window (see ) hasn't been fixed. Not in 4.0.3 at least.

- Oystein -


At 21 NOV 2002 04:17PM Donald Bakke wrote:

Oystein,

It works in 4.1.2.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 21 NOV 2002 04:27PM Steve Carlson wrote:

Don,

I can access VPOSITION in 4.12 debug, but on a 2 page form

VPOSITION shows " " , that's 2 apostrophies and I believe a null/blank and that's it.

SteveCarlson


At 21 NOV 2002 05:03PM Donald Bakke wrote:

Steve,

Weird. I have a 5-page form and I get correct results on every page. This happens whether I put code in Basic+:

vPos=Get_Property(@Window, "VPOSITION")

…or whether I use the Debugger inspect properties window (although I have to type the VPOSITION property myself since it still doesn't exist in the pull down.)

When OI32 first came out we discovered that one of our old forms created in OI16 gave very odd results for VPOSITION. Pat and I figured out that somehow the Form Designer had created an unusual hex value for the window's structure. While it allowed the form to be created in OI32 it caused a problem for us with VPOSITION. I redesigned the window in OI32 and the problem went away.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 21 NOV 2002 05:12PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Don

We're seeing what your're seeing but we suspect the "rogue" result reported by others is that if you use View/Properties rather than Inspect Properties it does not display the VPOSITION variable correctly.

The Sprezzatura Group

World Leaders in all things RevSoft


At 21 NOV 2002 05:22PM Oystein Reigem wrote:

Don,

Thanks. I'll try again in 4.1.2 later.

For the record - I tried both an old window originally created in OI16 and a new one I made in 4.0.3. So the explanation you and Pat found for your old window doesn't fit my case.

- Oystein -

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/f96489bedf7a055b85256c780061e919.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1