Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Many thanks to you for putting it together and to the forum members for taking the time to post their replies and give their time to help others. Their isn't another site that can touch it..."

Geography

Where in the world do Tek-Tips members come from?
vinczej (Programmer)
23 Jul 12 3:48
Hi All!

I'm using Foxpro for DOS 2.6 for some "old" customers. It can run generally correctly on Windows XP in a Virtual PC of Windows7.

But I have a problem. I have a process, that can't run on this configuration, if I run it as an EXE file (with option "+x" extended). But the function can run seamlessly, if it run in the FOXPROX.EXE environment with "do program".

Have you any idea, what parameter I'm missing for the compiled running?

Thanks forward!
vinczej (Programmer)
23 Jul 12 4:07
Pardon, I forgot the error message: "Unrecognized command werb", and appears on very several places in the program.
DSummZZZ (Programmer)
23 Jul 12 12:26
So let me pose the usual question: What's different in your production environment than your development environment?
There must be some "SET" or something that is different between the two.
It's impossible to tell what the problem is without knowing what the lines of code are that are causing the error.

-Dave Summers-
cheers
Even more Fox stuff at:
http://www.davesummers.net/foxprolinks.htm

TamarGranor (Programmer)
23 Jul 12 16:03
Do you use the macro operator (&) anywhere? If you're using it to substitute a file name into a command and there's a space in the path, you can get that error.

If that's the issue, use a name expression instead. That, surround the variable with parentheses rather than using the macro operator. So, if you have:

CODE -->

USE &cSomeTable 

change it to:

CODE -->

USE (m.cSomeTable) 

Tamar
danfreeman (Programmer)
23 Jul 12 20:02
In addition to Tamar's excellent suggestion, note that this might be caused by conditional compilation (also caused by &macro expansion).

In a misguided attempt to shrink the size of EXE files (because users complained), Fox Software conditionally compiled some parts of the product into runtime EXEs. If the compiler didn't "see" REPORT FORM in the code, for instance, then it wouldn't include that runtime capability in the final EXE (but it would work just fine in the IDE).

If you had, for example, this:

CODE

lcCommand = "REPORT FORM whatever"
&lcCommand TO PRINT 

you might see "Unrecognized command verb" because the compiler didn't "see" it as a command being executed.

What commands does your error handler tell you are not being recognized?
vinczej (Programmer)
24 Jul 12 15:52
Thanks for the replies!orientalbow

It seems to be a problem with the "use anyfile exclusive" in some cases. I'm trying to find the real cause.

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!

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