//Aplicar formato al control de edición numérica
//Accedemos al root del formulario en curso
form = theRoot.dataView();
//Accedemos al control de edición numérica
var edNum = form.control("ED_NUM");
//Aplicar el valor de incremento
edNum.singleStep = theRoot.varToInt("VAL_INC");
//Aplicar número de decimales
edNum.decimals = theRoot.varToInt("NUM_DEC");
edNum.prefix = theRoot.varToString("PRE");
edNum.suffix = theRoot.varToString("SUF");
//Aplicar el valor máximo
if (theRoot.varToInt("MAX")!=0){
edNum.maximum = theRoot.varToInt("MAX");
//Aplicar el valor mínimo
edNum.minimum = theRoot.varToInt("MIN");
//Quitamos el límite máximo al control si su valor es 0
edNum.maximum = Number.MAX_VALUE;
if (theRoot.varToBool("OCU_BTN")==1) {
edNum.buttonSymbols = "NoButtons";
edNum.buttonSymbols = "UpDownArrows";