Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to solve this issue

How to solve this issue

How to solve this issue

I have a menu embdbed to _SCREEN:

On Selection Bar 1 Of MyPopMenu Do prcLoadConfig

Procedure prcLoadConfig
   MessageBox("Hello Procedure!!!")

Works quite good but if you switch VFP main window to another and execute the option again then you get this error:

What am I doing wrong?

A team is only pieces that you exchange until you finish the work, it is efficient, it works.

RE: How to solve this issue

This is because, at the time of making the menu selection, VFP cannot find the PRG file (prcloadconfig.prg).

If you are running in the development environment, make sure that the file is in your search path (as determined by SET PATH). If you ar running from an EXE, make sure the file is in the project at the time you do the build (and is not excluded).

Another option is to precede the filename with the full pathname, but that is not ideal as it will cause problems if you move the file to a different location.


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: How to solve this issue

Thanks Mike,

I did solve the problem by creating a custom class and put all menu procedures in it.

A team is only pieces that you exchange until you finish the work, it is efficient, it works.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close