SELCASE() return code
Posted: February 2nd, 2022, 3:53 pm
Hello,
I am having some issue with the referred function, up to cspro version 7.6, the return code was 1 if selected or 0 if not, however in cspro version 7.7, it is something different, in case not selected the value is 0, as usual, however if found, it return the record number, not only a "1", if I select the first in the list, it returns a 1, if select the second it returns "2", for the third "3", and above. I think it is an issue because in the help it is clear that the return code is 1 or 0. I tested it in a windows device, didnt check in an android device.
In old applications I was asking for a "1" that was working properly in previous cspro version, and now it didn't work, then I sent an errmsg to see the return code. Now I changed the logic to value <> 0.
Thanks
Mario
I am having some issue with the referred function, up to cspro version 7.6, the return code was 1 if selected or 0 if not, however in cspro version 7.7, it is something different, in case not selected the value is 0, as usual, however if found, it return the record number, not only a "1", if I select the first in the list, it returns a 1, if select the second it returns "2", for the third "3", and above. I think it is an issue because in the help it is clear that the return code is 1 or 0. I tested it in a windows device, didnt check in an android device.
In old applications I was asking for a "1" that was working properly in previous cspro version, and now it didn't work, then I sent an errmsg to see the return code. Now I changed the logic to value <> 0.
Thanks
Mario