Jump to content


Photo
- - - - -

Committing changes


17 replies to this topic

#16 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 414 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 10 February 2005 - 08:28 AM

Hi Neil

If you're working in GUI we've found it useful to change the way you think about screen design and create artificial commit points.

Basically we load all the data on entry to the screen (into either display scratches or workfiles / memory files). On exit from the screen you then call an update LS (or not depending on how the screen exit was achieved). This then removes the file reads from the actual data entry section of the screen and gets rid of the sort of problem you are experiencing here.

It's really the best way to handle it in a language that wasn't really designed for GUI screen development.

Cheers

Mike

Thanks Mike

The screen that I am busy with was originally designed that way, but functionality had to change drastically. As it is I am pretty close to the limits of what VIP can handle, I think if I had to use scratch variables I would continue getting the workspace exceeded error.


Does anybody know if Pro-IV intend changing how screens work ? Basically follow the same methodology as VB etc when it comes to programming events within screens rather than relying on a timing cycle.

#17 Papa Lazarou

Papa Lazarou

    Member

  • Members
  • PipPip
  • 38 posts
  • Gender:Male
  • Location:Royston Vasey
  • Interests:Collecting wives, pegs.

Posted 11 February 2005 - 02:50 AM

I'm sure i'm missing something really arbitrary here

:-"

Try a search (older than last 30days) for "first enterable" or "first entry field" and you'll find some detail about the ForceWrite method.
If you use it for LS1 (paging?) then it will force F3 to write the record. Give it a go and let us know!
You're my wife now, Dave!

#18 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 414 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 11 February 2005 - 05:45 AM

Thats it, it works 100 %

Thanks Papa :p

Edited by Neil Hunter, 11 February 2005 - 05:46 AM.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users