Jump to content


Photo
- - - - -

Can WINLOCATE be given row,col relative to a pageing record ?


3 replies to this topic

#1 nurquhar

nurquhar

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Male

Posted 11 December 2009 - 04:08 PM

Using Pro-IV v4 on AIX

Although @PSEQ and @FLD enables me to determine the current record and field in a paging screen, is there anyway of finding out which line on the screen the current record is positioned at ? I am looking to use WINLOCATE to position a window relative to the current record in a paging screen. However WINLOCATE uses absolute coords.

I did wonder if it might be posible to use some kind of relative position tracking by looking the difference between @PSEQ and @CPSEQ in ARNE logic of the primary file but fear this would not work when the user types his required record number in the @PSEQ field.

Any Ideas ?

#2 Donald Miller

Donald Miller

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 205 posts
  • Gender:Male
  • Location:Cupar, Fife, Scotland
  • Interests:Motorcycling, Running, Cooking

Posted 14 January 2010 - 09:06 PM

Hi Neil

Long time no speak. How are you doing?

I seem to remember trying to do this back in the dim and distant and not finding a solution. Probably before I joined this very helpful forum. And what you describe reminds me of the problems.

I appreciate that this isn't the kind of feedback you're looking for but negative feedback is better than none at all, I suppose.

It states in the manual that WINLOCATE doesn't work with Windows (or maybe it says it's unsupported) - but I'm guessing that's a misprint as it seems to work fine. I'm on 5.5 now and can't remember if I was using it with 4. Sorry.

Not a lot of help - but unless someone else comes up with the solution you'll maybe save yourself pulling more hair out.

Take it easy

Donald
Half of what he said meant something else, and the other half didn't mean anytthing at all

#3 nurquhar

nurquhar

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Male

Posted 15 January 2010 - 09:05 AM

Dear Donald

Thanks for the replie, as you sugest its to know your just as stuck with an issue as anybody else.

I did achive in the end a "half cocked" soloution. I used the remainder function with @PSEQ and the number of visable records on screen to workout which record, and therefore the line number on the CRT the cursor is "probably" at. It mostly works if the user is just navigating using up/down keys but gets totaly confused if the user dials in the record number in the @PSEQ field.

I don't do pro4 all day every day, I have been supporting over the internet for a few years a manufacturing companys sales,stock & production planning system. The work is mainly bolting on new bits of functionality and fixing bugs.

My main business is as an "Artists Engineer". This involves me in a whole range of stuff. From designing/building electronic PCB's and embeded programming, Visual C++ on PC's, through to mechanical CAD design, project planning, welding fabrication, electrical design and wiring. Pretty much anything that can go into the manufacture of a piece of public artwork. I finished a project near you at Aberdeen Uni at the end of last year called "Hippocratic Oath". There is a picture of it on the artists website along with some other projects I have done for him, about half a dozen or more. See http://www.ronhaselden.com/

#4 Donald Miller

Donald Miller

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 205 posts
  • Gender:Male
  • Location:Cupar, Fife, Scotland
  • Interests:Motorcycling, Running, Cooking

Posted 15 January 2010 - 11:19 AM

Well there you go Niel that's my forte too - manufacturing, stock control, production and all that goes with it. Long way from Munich - wasn't it? The artists engineer sounds interesting too though.

Take it easy
Half of what he said meant something else, and the other half didn't mean anytthing at all



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users