Microsoft small business knowledge base

Article ID: 141479 - Last Review: February 28, 2014 - Revision: 3.1

This article was previously published under Q141479
This article has been archived. It is offered "as is" and will no longer be updated.

On This Page


A Program Error occurs while executing code when the Valid event of a Get object refers to a procedure that does not exist. If the user clicks either Ignore or Suspend followed by Resume, Visual FoxPro guits.


Either implement an error handling routine to trap for this error or click Cancel during the Program Error of Visual FoxPro's default error handling routine.


Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.


Steps to Reproduce Problem

  1. Create a program containing the following code:
       DEFINE POPUP test_pop
       DEFINE BAR 1 OF test_pop PROMPT "Bar 1"
       DEFINE BAR 2 OF test_pop PROMPT "Bar 2"
       @ 2.000,1.333 GET test_pos ;
          PICTURE "@&N" ;
          POPUP test_pop;
          SIZE 5,15 ;
          DEFAULT 1 ;
          VALID pop_test()
       RELEASE BAR ALL OF test_pop
  2. Save and close the program. Then use the DO command to run the program.
  3. Press the ENTER key. At this point, the following Program Error occurs:
    File 'pop_test.prg' does not exist.
  4. Click Ignore. This results in an Illegal Operation error or general protection (GP) fault depending on the version of Windows installed on the computer.

  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 3.0b Standard Edition
kbnosurvey kbarchive kbbug kbfix kbvfp500fix KB141479
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support