AW: Easiest way to keep person from navigating off a page

2020-01-02 Thread Jürgen Wondzinski
In the VALID Event of that offending control: RETURN 0 Which means: don't move the focus from that control. If several controls together can do harm to the page control, just disable all other pages. That's the equivalent of a modal page :) FOR EACH oPage IN Pageframe.pages

Re: Easiest way to keep person from navigating off a page

2020-01-02 Thread António Tavares Lopes
You may use the Page's DEACTIVATE event to prevent switching to other tabs, by issuing a NODEFAULT when data is invalid. On Thu, Jan 2, 2020 at 2:50 PM MB Software Solutions, LLC < mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote: > VFP9SP2. Scenario: pageframe with several pages. Goal: force

RE: Hacker's Guide, Section 4, now live on github.io!

2020-01-02 Thread Paul H. Tarver
+1 I prefer to spend my time on the concept of "craftsmanship" and get better at the languages I already know instead of learning new languages. Probably not the way to stay current, but crafting better code gives me great pleasure and satisfaction. Paul H. Tarver -Original Message-

Easiest way to keep person from navigating off a page

2020-01-02 Thread MB Software Solutions, LLC
VFP9SP2. Scenario: pageframe with several pages.  Goal: force user to stay on page if invalid data entry on that page. I'm trying to think of the best, non-kludgey way to prevent the user navigating to a different tab if an invalid condition exists.  I was dabbling with the Page.Activate but

Re: Easiest way to keep person from navigating off a page

2020-01-02 Thread MB Software Solutions, LLC
That seems to be exactly what I needed.  Thanks! On 1/2/2020 10:22 AM, António Tavares Lopes wrote: You may use the Page's DEACTIVATE event to prevent switching to other tabs, by issuing a NODEFAULT when data is invalid. On Thu, Jan 2, 2020 at 2:50 PM MB Software Solutions, LLC <