HITESH ARORA / Publications
Forum
OrderType returning void, instead of int.
Hi, While running this code snippet, error is coming saying OrderType returns void. CODE: for (int i=OrdersTotal()-1 ; i>=0 ; i--) { if (OrderSelect(i, SELECT_BY_POS)) { OrderPrint(); Print(OrderType()); } } ERROR: expression of 'void' type is illegal 1 1 OrderType should return int type