1 (edited by weixing1531 2023-02-26 06:14:11)

Topic: about checkboxsetchecked

It is wrong in SF3.26:
call checkboxsetchecked(CheckBoxNum(i),.TRUE.)
Error: Type mismatch in argument 'v' at (1); passed LOGICAL(4) to LOGICAL(1)

It is right:
call checkboxsetchecked(CheckBoxNum(i),LOGICAL(.TRUE.,1))

Re: about checkboxsetchecked

The checkboxsetchecked call is a direct C call with a Fortran interface, so the actual correct code would be:

use iso_c_binding
   ...
   call checkboxsetchecked(CheckBoxNum(i),LOGICAL(.TRUE.,kind=c_bool))
Jeff Armstrong
Approximatrix, LLC