dco045
30-12-2020, 02:45
Hello ThinBasic developpers.
May I suggest optionnal parameters to Bin_To_Hex$( string ) function ? :confused:
A number of bytes grouping , an a separator string.
Bin_To_Hex$("Hello") gives 48656C6C6F
Bin_To_Hex$("Hello" , 2 ,":") should give 4865:6C6C:6F
and if no separator string is provided a space is used as default.
Bin_To_Hex$("Hello" , 2 ) should give 4865 6C6C 6F
I think it could improve readability.
Regards
May I suggest optionnal parameters to Bin_To_Hex$( string ) function ? :confused:
A number of bytes grouping , an a separator string.
Bin_To_Hex$("Hello") gives 48656C6C6F
Bin_To_Hex$("Hello" , 2 ,":") should give 4865:6C6C:6F
and if no separator string is provided a space is used as default.
Bin_To_Hex$("Hello" , 2 ) should give 4865 6C6C 6F
I think it could improve readability.
Regards