PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The different operators are as follows:
Logical operatorsExamples: AND, OR, NOT
Arithmetic operatorsExamples: "+", "-", "*", "/", "++", "--", "+=", "-="
Binary operatorsExamples: "&", "|", "||", bitLeftShift, bitRightShift, [ and ] operators
Comparison operatorsExamples: "=", "~=", "<>", "<=", ">=", "<", ">"
Operators on character stringsExamples: "+", "[[", "]]"
Operators on address&
Operators for control and item indirection{ and }
Punctuation operatorsExamples: "(" and ")", "[" and "]", "," and "." and ":" and ";", "..", "..." and "//"
Exchange operators<=>
Assignment operators"=", "<-" and "<="
Minimum required version
  • Version 9
This page is also available for…
Comments
Another example
EDT_Senha..BrushColor = (EDT_Senha <> EDT_Senha_Confirma) OR (Length(EDT_Senha) < 6) ? LightRed ELSE White

EDT_Nome..BrushColor = EDT_Nome = "" ? LightRed ELSE White
adrianoboller
Oct. 16 2015
? as an in-line logical operator
I'd like to include ? in the list of logical or string operators.
Using the ? to do in line comparisons as in
<Result> = <Condition>? <Expression 1> ELSE <Expression 2>
Example :
Trace("The color is " + (sSelectedColor=""? "not selected." else sSelectedColor))

The trace will report either the color or "not selected" depending on the value of sSelectedColor
ccordes
Jun. 05 2014