... == IDOK ?llandscape // here is .t. bSetUp := {|oRep, oBrw, n, llandscape| MyRepSetup( oRep, oBrw, n,llandscape )} oBrw:Report("Elenco Categorie",.T.,,bSetUp ) Endif function MyRepSetup( oRep, oBrw, n ,llandscape) ?llandscape // here is nil if llandscape oRep:lAutoLand := ...