My mistake, it's OK, the error was in another place....
It works fine to pass the value of a variable from another file.