Page 1 of 1

@uilist return value not consistent

Posted: Thu Jun 13, 2013 10:46 am
by etienne
Hi,

The return values of the @uilist function doesn't behave the same depending on whether the select_item argument is a scalar or a string.

If the select_item argument is a scalar, then the command will return 0 when pressing the OK button, and -1 when pressing the Cancel button, as expected.

However, if the select_argument is a string, then the command will return 1 when pressing the OK button, and 0 when pressing the Cancel button.

This has been observed in both EViews versions 7.2 and 8.

As a workaround, in the meantime, I use @uidialog("List", ...) instead.

Best regards,

Étienne

Re: @uilist return value not consistent

Posted: Thu Jun 13, 2013 12:03 pm
by EViews Gareth
Will be fixed in next EV8 patch.