This make the compiler happy: foldlevelmask = byte(abs(not (foldhiddenmask or currentfoldhiddenmask))); Not sure it is better to do abs() but so no more warning. Let's fix with it? ----- Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/