×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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

command contains unrecognized pharse / keyword
7

command contains unrecognized pharse / keyword

command contains unrecognized pharse / keyword

(OP)
why when i was clik command this is happend?

RE: command contains unrecognized pharse / keyword

Yes, because VFP does not know MOD as an operator. You can use % as operator, or MOD() as a function, but not the way you used it. This can't be compiled and executed, VFP doesn't know what to do with this line of code, so it throws that error.

If you want to use mathematical operators, there's the language reference of what is available:
https://www.vfphelp.com/vfp9/_5wn12ptw2.htm

Chriss

RE: command contains unrecognized pharse / keyword

2
Chris must have much better eyesight than me. Or a much larger monitor. I can barely make out the text in the screen shots.

Merpat, do us all - and yourself - a favour. Stop posting these useless screen shots in the forum. Instead, just paste in the line of code that generated the error, and the text of the error message (which, in any case, you already typed into the subject line).

This applies to every one of your posts in the forum so far. In every case you are expecting us to figure out your problem by trying to understand a detailed screen shots and in some cases multiple screen shots, with no further information from you. All this just to save you the effort of a little typing.

And while I am in the mood for a rant, I would also ask you to provide meaningful subject headers. "Hello, I have a question" and "looping" do not come into that category.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: command contains unrecognized pharse / keyword

5
To make it easier to provide what we need, be aware that when you have a VFP error window showing, if you hit CTRL+C, the text of that message gets copied to the clipboard. So you can paste that into your message to us without having to retype the error message.

Then, paste the code you want us to look at.

Tamar

RE: command contains unrecognized pharse / keyword

Quote:

when you have a VFP error window showing, if you hit CTRL+C, the text of that message gets copied to the clipboard.

Well I'll be darned. 18 years using Visual FoxPro. Seven years before that using FoxPro, Foxbase and dBase. And I'm still learning something new.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: command contains unrecognized pharse / keyword

I see. It works with any Messagebox:

CODE

MessageBox('Message',3,'Title') 

Copy&Paste:

---------------------------
Title
---------------------------
Message
---------------------------
Yes   No   Cancel   
--------------------------- 

Chriss

RE: command contains unrecognized pharse / keyword

Brill tip Tamar, thank you, have a star

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

There is no place like G28 X0 Y0 Z0

RE: command contains unrecognized pharse / keyword

FWIW, this came along fairly late in the game. VFP 9, I think.

Tamar

RE: command contains unrecognized pharse / keyword

AFAIK this is a Windows feature that has been present for ages dazed

RE: command contains unrecognized pharse / keyword

Well, it works in VFP6 as well.
And in Excel, so I think Dan is right = but Tamar brought it to me so she keeps the star!
(can you even remove a star once given?)

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

There is no place like G28 X0 Y0 Z0

RE: command contains unrecognized pharse / keyword

FWIW, I don't think it was exposed in VFP until late, but I can't say that for sure.

Tamar

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