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))
For discussions of all Approximatrix products and related software
You are not logged in. Please login or register.
Approximatrix Forums → Bug Reports → 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))
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))Approximatrix Forums → Bug Reports → about checkboxsetchecked
Powered by PunBB, supported by Informer Technologies, Inc.