Tutorial by Examples

Numeric operators are the easiest and almost the same as in other languages. +, -, * and /. Addition, subtraction, multiplication and division operators (in VFP there is no integer division, you can convert a result to integer with functions INT(), CEILING() and FLOOR()). % Modulus operator. ^ ...
Logical operators in VFP, in their order of precedence are: OperatorDescription( )Parentheses, groups expressionsNOT, !Logically negate the expression. NOT or ! has no difference.ANDLogically AND the expressionsORLogically OR the expressions<>, !=, #Check for inequality. Thus same as logical ...
There are only 4 character operators, in their order of precedence: OperatorDescription()Parentheses for grouping. Note: VFP documentation, that I have, misses this one. Without this, - operator is almost always useless.+Concatenates (joins) strings side by side.-Concatenates strings by moving the ...
There are basically two operators for date, datetime values. + and - are overloaded (probably a C term) to do date/datetime math: OperatorDescription+Adds days (date) or seconds (datetime) to a date/datetime value.-Gets the difference of two date/datetime values. Subtracts days (date) or seconds (d...
Of all the operators, relational operators are the most complex ones, that is why we left them to the end. Relational operators are also known as Comparison operators, they are used to compare things. Comparison result is boolean false or true. Interestingly though, if you check it in V...

Page 1 of 1