>DEFINE WINDOW pepe FROM 1,1 TO 20,100 NAME mariano SYSTEM FLOAT CLOSE ZOOM MINIMIZE
>mariano.SHOW()
>
>mariano.CAPTION="hola"
>
>REPORT FORM gamas1 PREVIEW WINDOW pepe NOWAIT
>
>mariano.CAPTION="adios"
Miguel,
Your problem is in your syntax, using WINDOW Pepe does NOT put your preview in that window, it causes the preview to build a window just like Pepe and put the preview in there. You can change the WINDOW Pepe to IN WINDOW Pepe and you code should then work.