All the dot net docs check if an entry has been checked using the
CheckState:Checked value. For the life of me I get syntax eorrors using it.
IF e:newValue = checkstate:checked THEN.
Unknown Field or Variable name - checkstate. (201)
am i missing something or is this a constant?
Are you using
USING System.Windows.Forms.* .
as the first line of your code (only the ROUTINE-LEVEL ON ERROR ...) can be before that.
.NET class names are case sensitive. Try
CheckState:Checked
Thanks.
Forgot to include USING.
I suspect your check might not work the way you expect even if it compiles.
The CheckedState:Checked is an enumerated value, which the ABL does not map to a similar primitive value. ABL only references and manages .NET enumeration types and their values as objects.
We provide an EnumHelper class with static methods to support operations on enumeration members. Example:
Progress.Util.EnumHelper:AreEqual(e:NewValue,CheckState:Checked)
This is better explained in the GUI for .NET Programming documentation
http://www.psdn.com/library/entry.jspa?externalID=6151&categoryID=2141
See the Accessing and using .NET enumeration types section on page 2-54
Message was edited to correct the link ref:
Havard Danielsen