fixed to use HB_BOOL instead of BOOL, formatting (.t. -> .T.)