Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operator mismatch error
Message
From
07/12/2014 15:35:33
 
 
To
07/12/2014 15:31:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01611955
Message ID:
01611961
Views:
54
>>>BROWSE FOR noun = 3 AND food = .T.
>>>Worked fine in development testing (just running the form inside VFP.)
>>>
>>>Complied I get 'Operator operand type mismatch' error message.
>>>I have a feeling this is an easy fox fix, but I don't know it, so I am here for a little help, please.
>>
>>Are you sure that the field types are correct?
>>
>>And if they are, just a hint: No reason to compare a logical value against .T. (or .F.), just check the value. This will do the same: "BROWSE FOR noun = 3 AND food"
>
>How about this. I'm 69 years old and VFP is on the way to being a dead language. Both of us are pretty close to dead, so instead of teaching, how about a nice straight answer? ;-)

I gave you one straight answer, namely to check the field types. I suggest that you try two Browses, one "BROWSE FOR noun = 3" and one "BROWSE FOR food". Then you will see which of the two gives an error.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform