The FormIntControl.value do return the int value of the control, so
Int var = IntEditField.value();
should work. It will return zero of cause if the control has not been set. Beware, on FormRealControl it is named realValue, on FormStringControl text, consistency sucks.
In older versions than AX 2012, you should place a semicolon after declarations like this:
Int var;
;
var = IntEditField.value();
Also, after setting the AutoDeclaration property, always recompile the form otherwise run-time errors or wrong behavior occurs.
This and other similar questions indicates you are not accustomed to using bound controls or edit methods.
IntEditFieldwhen the form opens?IntEditField.value()should work. The table datasource on a form is initialized when the form is initialized. You can assign by doingIntEditField.value(5);- Alex Kwitny